/* ========================================
   科享汇测 - 共享实验室平台
   统一网页端样式表
   配色：深海蓝 #0A4B78 + 琥珀金 #F5B041
======================================== */

/* ========== CSS变量定义 ========== */
:root {
    --primary-color: #0A4B78;      /* 深海蓝主色 */
    --primary-dark: #073858;       /* 深蓝 */
    --primary-light: #0B5B88;      /* 浅蓝 */
    --secondary-color: #F5B041;    /* 琥珀金强调色 */
    --secondary-dark: #E09F30;      /* 深金 */
    --secondary-light: #F7C360;     /* 浅金 */
    --text-dark: #333333;           /* 深色文字 */
    --text-gray: #666666;           /* 灰色文字 */
    --text-light: #999999;          /* 浅灰文字 */
    --bg-light: #F5F7FA;            /* 浅灰背景 */
    --border-color: #E8E8E8;        /* 边框色 */
    --white: #FFFFFF;              /* 白色 */
    --success: #52C41A;            /* 成功绿 */
    --warning: #FAAD14;            /* 警告黄 */
    --danger: #FF4D4F;            /* 危险红 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(10, 75, 120, 0.12);
    --transition: all 0.3s ease;
}

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: calc(100vh - 70px);
}

/* ========== 顶部导航栏 ========== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: 'KaiTi', 'STKaiti', serif;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.header-auth {
    display: flex;
    gap: 12px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-login {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-login:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-register {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-register:hover {
    background: var(--secondary-dark);
}

.user-avatar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    cursor: pointer;
}

.user-avatar-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== 全屏轮播图 ========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-slide.active {
    display: flex;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: 'KaiTi', 'STKaiti', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 30px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245, 176, 65, 0.4);
}

.hero-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(245, 176, 65, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-arrow:hover {
    background: var(--secondary-color);
}

/* ========== 搜索区域 ========== */
.search-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 40px 20px;
    text-align: center;
}

.search-title {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 25px;
}

.search-box {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    padding: 16px 25px;
    border: none;
    font-size: 1rem;
}

.search-box button {
    padding: 16px 35px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--secondary-dark);
}

/* ========== 功能入口 ========== */
.function-grid {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.function-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.function-card {
    text-align: center;
    padding: 25px 15px;
    border-radius: 12px;
    transition: var(--transition);
}

.function-card:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}

.function-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.function-card:nth-child(2) .function-icon {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
}

.function-card:nth-child(3) .function-icon {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.function-card:nth-child(4) .function-icon {
    background: linear-gradient(135deg, #C62828, #EF5350);
}

.function-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.function-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========== 内容区块 ========== */
.section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 3px;
}

.more-btn {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.more-btn:hover {
    color: var(--secondary-color);
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.card-content {
    padding: 18px;
}

.card-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.card-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.card-status.available {
    background: #E8F5E9;
    color: var(--success);
}

.card-status.busy {
    background: #FFF3E0;
    color: var(--warning);
}

/* ========== 列表样式 ========== */
.list-item {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.list-item-image {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-item-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.list-item-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.list-item-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 10px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.tag-primary {
    background: rgba(10, 75, 120, 0.1);
    color: var(--primary-color);
}

.tag-gold {
    background: rgba(245, 176, 65, 0.15);
    color: var(--secondary-dark);
}

/* ========== 表单样式 ========== */
.form-section {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 75, 120, 0.1);
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
}

.code-btn {
    padding: 12px 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.code-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
}

.code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ========== 复选框/单选框 ========== */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input,
.radio-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 15px 0;
    background: var(--bg-light);
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

/* ========== 筛选栏 ========== */
.filter-bar {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.filter-item {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover,
.filter-item.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* ========== 排序栏 ========== */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.sort-info {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.sort-tabs {
    display: flex;
    gap: 20px;
}

.sort-tab {
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sort-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== 详情页 ========== */
.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-image {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    flex-shrink: 0;
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detail-subtitle {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.detail-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.detail-price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: normal;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

/* ========== 预约时段 ========== */
.booking-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.booking-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.time-slot.disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
}

/* ========== 订单相关 ========== */
.order-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.order-id {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.order-status.pending {
    background: #FFF3E0;
    color: var(--warning);
}

.order-status.paid {
    background: #E8F5E9;
    color: var(--success);
}

.order-status.completed {
    background: #E3F2FD;
    color: var(--primary-color);
}

.order-status.cancelled {
    background: var(--bg-light);
    color: var(--text-light);
}

.order-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.order-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.order-info {
    flex: 1;
}

.order-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.order-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.order-price {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ========== 支付页面 ========== */
.payment-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.payment-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.payment-amount {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 15px;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(10, 75, 120, 0.05);
}

.payment-method-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.payment-method-name {
    font-weight: 600;
}

.payment-method-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========== 用户中心 ========== */
.user-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    gap: 30px;
}

.user-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.user-profile {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    color: var(--white);
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.user-type {
    font-size: 0.9rem;
    opacity: 0.8;
}

.user-menu {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.user-menu-item:hover,
.user-menu-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-menu-item.active {
    border-left: 3px solid var(--secondary-color);
}

.user-content {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.content-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

/* ========== 数据统计 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    color: var(--white);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* ========== 公告/通知 ========== */
.notice-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-item::before {
    content: '?';
}

/* ========== 国标搜索专区 ========== */
.standards-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.standards-hero {
    text-align: center;
    margin-bottom: 40px;
}

.standards-hero h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.standards-hero p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.standards-search {
    max-width: 700px;
    margin: 0 auto 40px;
}

.standards-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.standards-category {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.standards-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.standards-category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.standards-category h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.standards-category p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.standards-list {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.standards-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.standards-list-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

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

.standards-list-item:hover {
    background: var(--bg-light);
}

/* ========== 友情链接专区 ========== */
.friendship-links {
    background: var(--white);
    padding: 50px 0;
}

.links-section {
    margin-bottom: 40px;
}

.links-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.link-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.link-item img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

/* ========== 底部 ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-family: 'KaiTi', 'STKaiti', serif;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom a {
    margin-left: 15px;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ========== 支付说明 ========== */
.payment-guide {
    background: var(--bg-light);
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 15px;
}

.payment-guide h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.payment-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-step {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.payment-step h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.payment-step p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ========== 加载状态 ========== */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 标签页 ========== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab {
    padding: 12px 25px;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-item {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-item:hover,
.pagination-item.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========== 协议页面 ========== */
.agreement-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--white);
}

.agreement-content h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.agreement-content h2 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

.agreement-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-gray);
}

/* ========== 帮助中心 ========== */
.help-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.help-category {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.help-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.help-category h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-category p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.help-questions {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
}

.help-question {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.help-question:last-child {
    border-bottom: none;
}

.help-question h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
}

.help-question p {
    color: var(--text-gray);
    line-height: 1.7;
    display: none;
}

.help-question.open p {
    display: block;
}

/* ========== 入驻申请 ========== */
.apply-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.apply-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.apply-header p {
    color: var(--text-gray);
}

.apply-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.apply-type {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.apply-type:hover,
.apply-type.active {
    border-color: var(--primary-color);
    background: rgba(10, 75, 120, 0.05);
}

.apply-type-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.apply-type h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .function-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-center {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .standards-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .header-auth {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 350px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .function-cards,
    .card-grid,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .payment-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .standards-categories,
    .links-grid,
    .help-categories {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 25px;
        margin: 20px;
    }

    .apply-types {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-gray { color: var(--text-gray); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.hidden { display: none; }
.visible { display: block; }
