* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
    color: #37474f;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2em;
    color: #1565c0;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.subtitle {
    color: #64b5f6;
    font-size: 1.1em;
    letter-spacing: 2px;
}

/* 内容区域 */
.content {
    flex: 1;
}

/* 卡片通用样式 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.2);
}

/* 照片上传 */
.photo-card {
    text-align: center;
    padding: 30px;
}

.photo-upload {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.photo-upload:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(33, 150, 243, 0.4);
}

.upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.upload-placeholder p {
    font-size: 1em;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.8em !important;
    color: #90a4ae;
    margin-top: 5px;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 信息卡片区域 */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.info-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.info-label {
    font-size: 0.85em;
    color: #90a4ae;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #1565c0;
}

/* 学校卡片占两列 */
.info-card:nth-child(4) {
    grid-column: span 2;
}

/* 交友按钮区域 */
.friendship-section {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.friendship-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #42a5f5, #1565c0);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(21, 101, 192, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.friendship-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(21, 101, 192, 0.5);
    background: linear-gradient(135deg, #64b5f6, #1976d2);
}

.friendship-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.3em;
}

.friendship-hint {
    margin-top: 15px;
    color: #78909c;
    font-size: 0.95em;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: #90a4ae;
    font-size: 0.85em;
}

.admin-login-btn {
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 0.85em;
    color: #90a4ae;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(144, 164, 174, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-login-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #1565c0;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal {
    background: linear-gradient(135deg, #e3f2fd, #f5f5f5);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0;
    margin-bottom: 10px;
}

.modal-header h2 {
    color: #1565c0;
    font-size: 1.5em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #90a4ae;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #37474f;
}

.modal-body {
    padding: 0 25px 25px;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #546e7a;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #37474f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #42a5f5, #1565c0);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

/* 提交成功提示 */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message .success-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #1565c0;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.success-message p {
    color: #78909c;
}

/* 响应式 */
@media (max-width: 480px) {
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .info-card:nth-child(4) {
        grid-column: span 1;
    }
    
    .header h1 {
        font-size: 1.6em;
    }
    
    .photo-upload {
        width: 160px;
        height: 160px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 150, 243, 0.5);
}
