/* CPA考试系统官方样式模拟 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 60px;
}

/* ========== 顶部导航栏 ========== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, #5B8FF9 0%, #4C7FE9 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-selector {
    display: flex;
    align-items: center;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.location-selector svg {
    margin-left: 4px;
}

.top-header .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* ========== 页面头部 ========== */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.page-header .header-title {
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

.header-back {
    position: absolute;
    left: 15px;
    font-size: 28px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.header-space {
    width: 40px;
}

/* ========== 主内容区 ========== */
.main-content {
    margin-top: 50px;
    padding: 10px 0 20px;
}

/* ========== 功能网格 ========== */
.function-grid {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 5px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.function-item:active {
    background-color: #f5f5f5;
}

.function-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.function-label {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

/* ========== 分区容器 ========== */
.section-container {
    background: white;
    margin-bottom: 10px;
}

.section-header {
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.section-icon {
    font-size: 18px;
    margin-right: 8px;
}

.section-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.section-more {
    font-size: 24px;
    color: #999;
}

/* ========== 通知列表 ========== */
.notice-list {
    padding: 0 15px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:active {
    background-color: #f8f8f8;
}

.notice-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 5px;
}

.notice-date {
    font-size: 12px;
    color: #999;
}

/* ========== 菜单列表 ========== */
.menu-list {
    background: white;
    margin-top: 50px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background-color: #f8f8f8;
}

.menu-item .menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.menu-desc {
    font-size: 12px;
    color: #999;
}

.menu-arrow {
    font-size: 24px;
    color: #ccc;
}

/* ========== 登录页面样式 ========== */
.login-container {
    padding: 20px;
    margin-top: 50px;
}

.register-link {
    text-align: right;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #5B8FF9;
    text-decoration: none;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.input-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #5B8FF9;
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.forget-password {
    text-align: left;
    margin-bottom: 25px;
}

.forget-password a {
    color: #5B8FF9;
    font-size: 13px;
    text-decoration: none;
}

.login-button {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #5B8FF9 0%, #4C7FE9 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 143, 249, 0.3);
    transition: all 0.3s;
}

.login-button:active {
    opacity: 0.9;
    transform: translateY(1px);
}

.security-notice {
    text-align: center;
    color: #ff4444;
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.5;
}

/* ========== 我的页面 ========== */
.user-info-card {
    background: linear-gradient(135deg, #5B8FF9 0%, #4C7FE9 100%);
    padding: 40px 20px 30px;
    margin-top: 50px;
    text-align: center;
    color: white;
}

.user-avatar-large {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.user-id {
    font-size: 13px;
    opacity: 0.9;
}

.login-prompt {
    background: white;
    margin: 60px 20px 20px;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
}

.prompt-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.login-btn-small {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(90deg, #5B8FF9 0%, #4C7FE9 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.logout-container {
    padding: 20px;
}

.logout-button {
    width: 100%;
    height: 48px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 24px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-button:active {
    background: #f5f5f5;
}

/* ========== 成绩查询页面 ========== */
.query-form {
    background: white;
    margin: 60px 15px 20px;
    border-radius: 12px;
    padding: 20px;
}

.form-section {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.query-form .input-group {
    margin-bottom: 18px;
}

.query-form .input-group input,
.query-form .input-group select {
    height: 44px;
    border-radius: 8px;
    padding: 0 15px;
}

.submit-button {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #5B8FF9 0%, #4C7FE9 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(91, 143, 249, 0.3);
}

.submit-button:active {
    opacity: 0.9;
}

.submit-button.secondary {
    background: white;
    color: #5B8FF9;
    border: 1px solid #5B8FF9;
    box-shadow: none;
}

.submit-button.secondary:active {
    background: #f5f5f5;
}

/* ========== 成绩结果展示 ========== */
.score-result-container {
    margin: 60px 15px 20px;
}

.candidate-info-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
    min-width: 110px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.score-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.score-section-title {
    background: linear-gradient(90deg, #5B8FF9 0%, #4C7FE9 100%);
    color: white;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
}

.score-table {
    padding: 15px;
}

.score-table-header,
.score-table-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.score-table-header {
    font-weight: 500;
    color: #666;
    font-size: 13px;
}

.score-table-row {
    color: #333;
    font-size: 14px;
}

.score-table-row:last-child {
    border-bottom: none;
}

.col-subject {
    flex: 3;
    padding-right: 10px;
}

.col-score {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.col-status {
    flex: 1;
    text-align: center;
}

.score-pass {
    color: #52c41a;
}

.score-fail {
    color: #ff4d4f;
}

.score-tips {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.score-tips p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 3px 0;
}

/* ========== 空白页面 ========== */
.empty-container {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.empty-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.empty-button {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(90deg, #5B8FF9 0%, #4C7FE9 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

/* ========== 底部导航栏 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item:active {
    background-color: #f5f5f5;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: #999;
    stroke-width: 2;
}

.nav-label {
    font-size: 11px;
    color: #999;
}

.nav-item.active .nav-icon {
    stroke: #5B8FF9;
}

.nav-item.active .nav-label {
    color: #5B8FF9;
    font-weight: 500;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    min-width: 200px;
    text-align: center;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========== 响应式适配 ========== */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .top-header,
    .page-header,
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}
