:root {
    --primary-color: #2A3783;
    --accent-color: #3498db;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-secondary: #7f8c8d;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(44, 62, 80, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.search-box {
    background: var(--card-bg);
    padding: 32px 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.8);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    color: var(--text-main);
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 55, 131, 0.12);
}

.form-group input::placeholder {
    color: #bdc3c7;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(42, 55, 131, 0.24);
}

.btn-primary:hover {
    background: #24306f;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(42, 55, 131, 0.2);
}

.btn-secondary {
    padding: 8px 12px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(42, 55, 131, 0.2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(42, 55, 131, 0.08);
}

.result-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}

.result-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://gwxapi.csciup.cn/uploads/logo.jpg');
    background-repeat: repeat;
    background-position: center;
    background-size: 80px;
    opacity: 0.08;
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 0;
}

.result-header, .result-content {
    position: relative;
    z-index: 1;
}

.result-header {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.student-header {
    display: flex;
    align-items: center;
}

.header-actions {
    margin-left: auto;
}

.avatar-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-right: 16px;
    background: #eee;
    flex-shrink: 0;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-main-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 状态标签样式重构 - 印章风格 */
.status-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0;
}

/* 状态颜色定义 */
.status-accepted {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.status-pending {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid rgba(239, 108, 0, 0.1);
}

.status-rejected {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.1);
}

.result-content {
    padding: 20px;
}

.section-title {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
    margin: 2px 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.info-grid .info-item {
    display: flex;
    flex-direction: column;
}

.info-grid .label {
    font-size: 12px;
    color: #667085;
    margin-bottom: 6px;
    font-weight: 500;
}

.info-grid .value {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.info-list .info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: none;
}

.info-list .info-row:last-child {
    border-bottom: none;
    padding-bottom: 10px;
}

.info-list .label {
    color: #667085;
    font-size: 12px;
}

.info-list .value {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    word-break: break-all;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 24px 0;
    display: none;
}

/* 录取地址高亮 */
.highlight-row {
    background: #f0f7ff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid #e1ecf7;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
}

.highlight-row .label {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 13px;
}

.highlight-row .value {
    color: var(--primary-color);
    font-weight: 600;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
}

#addressBox {
    grid-column: 1 / -1;
}

#reasonBox {
    grid-column: 1 / -1;
}

/* 未录取原因高亮 */
.reason-row {
    background: #fff5f5;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 12px;
    border: 1px solid #ffecec;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px;
}

.reason-row .label {
    color: #c0392b;
    font-weight: 600;
    font-size: 13px;
}

.reason-row .value {
    color: #c0392b;
    font-weight: 500;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.result-area {
    margin-top: 8px;
}

.info-panel {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02);
    margin-top: 24px;
}

.notice-list {
    margin: 0 0 16px;
    padding-left: 18px;
}

.notice-list li {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-panel .info-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.error-msg {
    text-align: center;
    color: #c0392b;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #c0392b;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .info-list {
        grid-template-columns: 1fr;
    }
    .avatar-box {
        width: 60px;
        height: 60px;
        margin-right: 16px;
    }
    .student-main-info h2 {
        font-size: 18px;
    }
}
