/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #383838;
    --main-hue: 100;
    --main-saturation: 49%;
    --main-lightness: 47%;
    --main-color: hsl(var(--main-hue), var(--main-saturation), var(--main-lightness));
    --main-color-dark: hsl(var(--main-hue), var(--main-saturation), 40%);
    --main-color-light: hsl(var(--main-hue), var(--main-saturation), 70%);
    
    --unified-max-width: 1150px;
    --unified-padding: 0 20px;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* send_list、collection_list、history_list 页面的容器 */
.container.main-content {
    max-width: var(--unified-max-width);
    padding: 0;
}

.tz-container {
    max-width: var(--unified-max-width);
    margin: 0 auto 40px auto;
    padding: 0;
}

/* ========== HEADER ========== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.header.no-banner {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主要布局：左侧组合 + 右侧 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 左侧组合：logo + 城市 */
.left-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 50px;
}

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

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-color);
}

.logo-url {
    color: var(--main-color);
    font-size: 13px;
}

/* 中间：城市选择 - 现在在左侧组合中 */
.show-city {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.change-location a {
    color: var(--main-color);
    text-decoration: none;
    font-size: 13px;
}

/* 右侧：上下两栏 */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 右下：导航菜单 - 增大 */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--main-color);
}

.nav-menu a.active {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
    font-weight: 500;
}

/* 右上：功能按钮区域 - 缩小 */
.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
}

.btn-bx, .head-btn {
    padding: 3px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    position: relative;
    background: white;
    display: inline-block;
}

.btn-bx:hover, .head-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.btn-bx .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    transform: translate(50%, -50%);
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 6px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--main-color);
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    transform: scale(1.05);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-container {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .left-section {
        gap: 15px;
    }

    .menu-toggle {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .right-section {
        display: none;
    }

    .mobile-menu-container {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-left: 1px solid #eee !important;
        transition: right 0.3s ease !important;
        z-index: 9999 !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .mobile-menu-container.active {
        right: 0 !important;
        display: flex !important;
        z-index: 9999 !important;
    }

    .mobile-nav-menu {
        flex: 1;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }

    .mobile-nav-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-nav-menu li:last-child {
        border-bottom: none;
    }

    .mobile-nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .mobile-nav-menu a:hover {
        color: var(--main-color);
        background: rgba(76, 175, 80, 0.05);
        padding-left: 10px;
    }

    .mobile-nav-menu a::before {
        content: '';
        position: absolute;
        left: -100%;
        top: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(45deg, var(--main-color), var(--main-color-dark));
        transition: left 0.3s ease;
    }

    .mobile-nav-menu a:hover::before {
        left: 0;
    }

    .mobile-auth-section {
        padding: 15px 30px 20px;
        border-top: 2px solid #f0f0f0;
        background: rgba(255, 255, 255, 0.95);
    }

    .mobile-auth-section .nav-menu-btn {
        display: block;
        width: 100%;
        padding: 8px 12px;
        margin: 5px 0;
        background: transparent;
        border: 1px solid var(--main-color);
        border-radius: 3px;
        color: var(--main-color);
        text-decoration: none;
        text-align: center;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
        position: relative;
        overflow: visible;
    }

    .mobile-auth-section .nav-menu-btn:hover {
        background: var(--main-color);
        color: #fff;
    }

    .mobile-auth-section .nav-menu-btn.btn-special {
        background: var(--main-color);
        color: #fff;
        border: 1px solid var(--main-color);
    }

    .mobile-auth-section .nav-menu-btn.btn-special:hover {
        background: var(--main-color-dark);
        border: 1px solid var(--main-color-dark);
    }

    .mobile-auth-section .nav-menu-btn.btn-special .badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff4757;
        color: #fff;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* 菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 菜单项动画效果 */
@media (max-width: 900px) {
    .mobile-menu-container.active li {
        opacity: 0;
        transform: translateX(50px);
        animation: slideIn 0.3s ease forwards;
    }

    .mobile-menu-container.active li:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu-container.active li:nth-child(2) { animation-delay: 0.15s; }
    .mobile-menu-container.active li:nth-child(3) { animation-delay: 0.2s; }
    .mobile-menu-container.active li:nth-child(4) { animation-delay: 0.25s; }
    .mobile-menu-container.active li:nth-child(5) { animation-delay: 0.3s; }
    .mobile-menu-container.active li:nth-child(6) { animation-delay: 0.35s; }
    .mobile-menu-container.active li:nth-child(7) { animation-delay: 0.4s; }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 平板适配 */
@media (max-width: 1024px) and (min-width: 901px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu ul {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .auth-buttons .head-btn, .auth-buttons .btn-bx {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-url {
        font-size: 10px;
    }

    .mobile-menu-container {
        width: 270px;
    }

    .mobile-nav-menu {
        padding: 70px 20px 20px;
    }

    .mobile-auth-section .nav-menu-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: #049F55;
    color: white;
    padding: 20px 0 0px;
}

.footer-content {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 10px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* 修复 logo 居中对齐 */
.footer-section .footer-logo {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.footer-section .footer-logo img {
    margin-bottom: 20px;
    max-width: 100px;
    height: auto;
    display: block;
}

.footer-section h4 {
    color: rgba(255, 255, 255, 1);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 100px;
    height: 100px;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    margin: 10px 0;
    border-radius: 5px;
    display: block;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
}

.qr-code-container {
    margin-top: 10px;
}

.qr-code-label {
    text-align: center;
    font-size: 12px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.bottom-container {
    border-top: #fff;
    margin-top: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 14px;
    color: var(--text-color);
}


.footer-bottom .footer-left {
    text-align: center;
}

.footer-bottom .footer-center {
    text-align: center;
    line-height: 1.6;
}

.footer-bottom .footer-right {
    text-align: center;
    font-size: 13px;
    color: #555;
}

.footer-bottom p {
    margin: 5px 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-section h4 {
        margin-bottom: 10px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    .footer-bottom .footer-left,
    .footer-bottom .footer-center,
    .footer-bottom .footer-right {
        text-align: center;
    }
}

/* ========== 头图 ========== */
.hero-banner {
    width: 100%;
    background-color: #2fb464;
}
.hero-banner-bg {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-banner-bg img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== 右侧边栏（覆盖为最新样式） ========== */
.sidebar {
    position: fixed;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.back-to-top-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.scan-module {
    background: white;
    padding: 7.5px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scan-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.side-qr-code {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.qr-pattern {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scan-text {
    color: #666;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

/* 返回顶部按钮（更新为最新样式） */
.back-to-top {
    width: 50px;
    height: 50px;
    background-color: #888888;
    border: none;
    outline: none !important;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top:hover {
    background-color: #666666;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid white;
    margin: 0 auto;
}

.back-to-top.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 0.8;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========== 平台描述 ========== */
.platform-description {
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: var(--unified-max-width);
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.platform-description .container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    white-space: normal;
}

#system-description {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

#system-description p {
    margin-bottom: 15px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* 富文本内容容器 */
.claimer {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.claimer p {
    margin-bottom: 15px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* 移动端富文本适配 */
@media (max-width: 768px) {
    .platform-description .container {
        padding: 15px;
    }
    
    #system-description,
    .claimer {
        font-size: 14px;
        line-height: 1.6;
    }
    
    #system-description p,
    .claimer p {
        margin-bottom: 12px;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-all;
    }
}

/* ========== 热门科目/高校卡片 ========== */
.hot-container {
    max-width: var(--unified-max-width);
    margin: 20px auto;
    padding: var(--unified-padding);
}

.hot-card-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hot-card-container .section {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.hot-card-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.hot-card-container .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.hot-card-container .section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background-color: var(--main-color, #28a745);
    border-radius: 2px;
    margin-right: 8px;
}

.hot-card-container .more-link {
    font-size: 14px;
    color: var(--main-color, #28a745);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.hot-card-container .more-link:hover {
    text-decoration: underline;
}

.hot-card-container .more-link::after {
    content: '>>';
    margin-left: 5px;
    font-size: 12px;
}

.hot-card-container .items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
    max-height: 80px;
    overflow: hidden;
}

.hot-card-container .item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px 0;
    flex-basis: calc(20% - 12px);
    box-sizing: border-box;
    position: relative;
    padding-left: 20px;
}

.hot-card-container .item:hover {
    color: var(--main-color, #28a745);
}

.hot-card-container .toggle-container {
    display: none;
}

.hot-card-container #hotSchoolsContainer,
.hot-card-container #hotSubjectsContainer {
    max-height: 80px !important;
    overflow: hidden !important;
}

.hot-card-container #hotSchoolsContainer.expanded {
    max-height: none !important;
}

/* ========== 其他组件（jy-container等） ========== */
.jy-container {
    max-width: var(--unified-max-width);
    width: 100%;
    margin: 0 auto 30px;
    padding: 0;
    box-sizing: border-box;
}
.cards-container {
    display: flex;
    gap: 20px;
    margin: 40px auto 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: var(--unified-padding);
}

.image-container {
    position: relative;
    max-width: 350px;
    width: 30%;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    box-sizing: border-box;
}

.main-text {
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.side-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.side-text div {
    margin-bottom: 8px;
}

.side-text div:last-child {
    margin-bottom: 0;
}

.side-text a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.side-text a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.side-text a:visited {
    color: white;
}

/* 右上角订单卡片横幅 */
.order-banner,
.diagonal-banner {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    text-align: center;
    border-radius: 0 0 0 6px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.order-banner {
    background-color: #3498db;
}

.diagonal-banner {
    background-color: #e74c3c;
}

.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========== 通用网格布局 ========== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px 20px;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px 20px;
}

.item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
    transition: color 0.2s;
    white-space: nowrap;
}

.item:hover {
    color: #52c41a;
    cursor: pointer;
}

/* ========== 搜索区域（覆盖为最新样式） ========== */
.search-section {
    margin: 20px 0;
    position: relative;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: var(--main-color, #0077cc);
}

.search-btn {
    padding: 12px 24px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background: #005fa3;
}

.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background: #f5f5f5;
    color: #0077cc;
}

.no-results {
    padding: 12px;
    color: #999;
    text-align: center;
}

/* ========== 全局城市/省份样式（覆盖部分） ========== */
.section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.hot-cities {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hot-cities .city-link {
    display: inline-block;
    margin: 8px 12px;
    color: #e67e22;
    font-weight: 500;
    text-decoration: none;
}

.hot-cities .city-link:hover {
    text-decoration: underline;
}

.city-link {
    color: #337ab7;
    text-decoration: none;
    font-size: 15px;
    padding: 3px 0;
    text-align: left;
    display: block;
}

.city-link:hover {
    text-decoration: underline;
    color: #23527c;
}

.alphabetical-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.letter-group {
    margin-bottom: 25px;
    break-inside: avoid;
}

.letter-title {
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
    color: #2c3e50;
}

.province-name {
    font-weight: bold;
    font-size: 16px;
    min-width: 100px;
    display: inline-block;
    vertical-align: top;
    margin-top: 8px;
    color: #555;
}

.cities-list {
    display: inline-block;
    width: calc(100% - 120px);
    vertical-align: top;
}

.city-item {
    display: inline-block;
    margin: 5px 10px;
    color: #0077cc;
    text-decoration: none;
    font-size: 14px;
}

.city-item:hover {
    text-decoration: underline;
    color: #23527c;
}

.current-city {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    min-width: 200px;
    text-align: center;
    z-index: 1000;
}

.current-city h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #155724;
}

.current-city-name {
    font-size: 16px;
    font-weight: bold;
    color: #155724;
}

/* 新增城市描述 */
.choose-city-description {
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.5;
    margin: 20px 0;
}

/* ========== 备选流程区域 ========== */
.beixuan-section {
    margin: auto;
    max-width: var(--unified-max-width);
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    background: transparent;
    padding: var(--unified-padding);
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007bff;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.card-actions .detail-button {
    flex: 2;
}

.card-actions .delete-button {
    flex: 1;
    padding: 5px;
    background-color: #999;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.beixuan-container {
    max-width: var(--unified-max-width);
    margin: 20px auto 30px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.title {
    color: green;
    font-size: 24px;
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.process-title {
    color: green;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
}

.step svg {
    margin-right: 10px;
}

.step-text {
    text-align: left;
}

/* ========== 做家教页面样式 ========== */
.zjj-container {
    max-width: 1150px;
    margin: 0 auto;
    overflow: hidden;
}

.zjj-header {
    display: flex;
    gap: 15px;
    padding: 20px 20px 0 20px;
}

.btn-register {
    background-color: #ff8c42;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-register:hover {
    background-color: #e67c37;
}

.btn-contact {
    background-color: #7bc142;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-contact:hover {
    background-color: #6fa838;
}

.content-area {
    padding: 20px;
}

.content-editor {
    min-height: 400px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 30px;
    background-color: white;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-lines {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.content-line {
    margin-bottom: 8px;
}

.content-line.spaced {
    margin-bottom: 16px;
}

/* ========== 用户中心样式 ========== */
.notification-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff9900;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

.user-center-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 16px;
    margin-left: 20px;
    margin-right: 20px;
}

.user-info-section {
    background-color: #f5f5f5;
    padding: 16px;
    display: flex;
    align-items: center;
}

.avatar-container {
    margin-right: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    color: #333;
}

.user-details p {
    margin: 8px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.certified-badge {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 16px;
}

.function-nav-section {
    background-color: #f5f5f5;
    padding: 16px;
}

.function-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.function-nav-section li {
    text-align: center;
    cursor: pointer;
    flex: 1;
}

.function-nav-section a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.function-nav-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.nav-text {
    font-size: 16px;
    color: #666;
}

.content-section {
    background: none;
    padding: 0;
    margin-bottom: 40px;
}

/* 热门城市卡片（独立于全局.hot-cities样式） */
.content-section .hot-cities {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 40px;
}

.content-section .hot-cities h5 {
    font-size: 15px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-section .more-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.content-section .city-item {
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-section .city-item:hover {
    color: #1e88e5;
}

.function-nav {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.user_center .sidebar {
    display: none;
}

/* ========== FAQ 常见问题区域 ========== */
.faq-section {
    max-width: var(--unified-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.faq-container {
    display: flex;
    gap: 20px;
    padding: 0 0 20px;
}

.faq-column {
    flex: 1;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
}

.faq-title {
    color: #4CAF50;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.faq-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
}

.faq-title a {
    color: var(--main-color);
    text-decoration: none;
}

.faq-item {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-item::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

.faq-item a {
    color: #383838;
    text-decoration: none;
}

.faq-item a:visited {
    color: #383838;
}

.faq-item a:hover {
    color: #4CAF50;
}

.loading {
    color: #666;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    animation: fadeInOut 1.5s infinite;
}

/* ========== 问答页面样式（限定作用域）========== */
.questions-container {
    max-width: var(--unified-max-width);
    margin: 20px auto 40px auto;
    padding: var(--unified-padding);
}

.questions-container .top-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.questions-container .main-content {
    flex: 3;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.questions-container .teacher-sidebar {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.questions-container .bottom-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.questions-container .section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.questions-container .section-title::before {
    content: "·";
    color: #52c41a;
    margin-right: 8px;
    font-size: 12px;
}

.questions-container .faq-text {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.questions-container .course-info {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.questions-container .placeholder-text {
    background: #ddd;
    height: 20px;
    margin: 8px 0;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.questions-container .placeholder-text:nth-child(1) { width: 95%; }
.questions-container .placeholder-text:nth-child(2) { width: 60%; }
.questions-container .placeholder-text:nth-child(3) { width: 88%; }
.questions-container .placeholder-text:nth-child(4) { width: 92%; }
.questions-container .placeholder-text:nth-child(5) { width: 75%; }
.questions-container .placeholder-text:nth-child(6) { width: 85%; }
.questions-container .placeholder-text:nth-child(7) { width: 70%; }
.questions-container .placeholder-text:nth-child(8) { width: 40%; }
.questions-container .placeholder-text:nth-child(9) { width: 65%; }

.questions-container .teacher-list {
    list-style: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.questions-container .teacher-item {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.questions-container .teacher-item:last-child {
    border-bottom: none;
}

.questions-container .teacher-name {
    font-weight: 500;
}

.questions-container .teacher-info {
    color: #999;
    font-size: 12px;
}

.questions-container .more-link {
    color: var(--main-color);
    text-decoration: none;
    font-size: 14px;
    float: right;
    margin-top: 0;
}

.questions-container .more-link:hover {
    color: var(--main-color-dark);
}

.questions-container .teacher-sidebar-title {
    color: var(--main-color);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.questions-container .teacher-sidebar-title::before {
    content: "·";
    margin-right: 8px;
    font-size: 10px;
}

.questions-container .description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.questions-container .description-placeholder {
    background: #ddd;
    height: 16px;
    margin: 6px 0;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.questions-container .description-placeholder:nth-child(2) { width: 100%; }
.questions-container .description-placeholder:nth-child(3) { width: 98%; }
.questions-container .description-placeholder:nth-child(4) { width: 85%; }

/* ========== 新闻模块（限定作用域）========== */
.news-container {
    max-width: var(--unified-max-width);
    margin: 0 auto 40px auto;
    padding: var(--unified-padding);
}

/* 新闻列表 & 详情共享 */
.news-container .main-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 新闻列表样式 */
.news-container .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-container .news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

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

.news-container .news-item::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #52c41a;
    font-size: 12px;
}

.news-container .news-item:hover {
    background-color: #f8f9fa;
    padding-left: 50px;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.1);
}

.news-container .news-item:hover .news-title {
    color: #52c41a;
}

/* 新闻详情样式 */
.news-container .news-detail {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 通用新闻标题、元信息 */
.news-container .news-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.news-container .news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-container .news-title a:hover {
    color: #52c41a;
}

.news-container .news-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.news-container .news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 新闻详情页专属 */
.news-container .news-detail .news-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.news-container .news-detail .news-meta {
    font-size: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    text-align: center;
}

.news-container .news-content {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.news-container .news-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.news-container .news-content p {
    margin-bottom: 15px;
}

.news-container .news-content strong {
    color: #333;
}

/* 面包屑（覆盖全局） */
.news-container .breadcrumb {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
}

.news-container .breadcrumb a {
    color: #666;
    text-decoration: none;
}

.news-container .breadcrumb a:hover {
    color: #52c41a;
}

/* 返回链接 */
.news-container .back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #52c41a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.news-container .back-link:hover {
    color: #389e0d;
}

.news-container .back-link::before {
    content: "←";
    margin-right: 5px;
}

/* 分页样式 */
.news-container .pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.news-container .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.news-container .pagination li {
    display: inline-block;
}

.news-container .pagination a,
.news-container .pagination span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    min-width: 35px;
    text-align: center;
    transition: all 0.2s ease;
}

.news-container .pagination a:hover {
    background-color: #f5f5f5;
    border-color: #52c41a;
    color: #52c41a;
}

.news-container .pagination .current {
    background-color: #52c41a;
    color: white;
    border-color: #52c41a;
}

.news-container .pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-container .pagination .disabled:hover {
    background-color: transparent;
    border-color: #ddd;
    color: #666;
}

/* 当前页标记 */
.news-container .current-page {
    color: #52c41a;
    font-weight: 500;
}

/* 加载状态 */
.news-container .loading {
    text-align: center;
    padding: 40px;
    color: #666;
    animation: none;
}

/* 无数据状态 */
.news-container .no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 新闻列表内的 section-title */
.news-container .section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    text-align: center;
}

/* ========== 教师卡片样式（已修改 .tags 为 .teacher-tags）========== */
.teacher-card {
    width: 100%;
    aspect-ratio: 500/362;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-self: center;
    position: relative;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.teacher-avatar {
    width: 70px;
    height: 70px;
    background-color: #b8d4d4;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.teacher-info {
    flex: 1;
    min-width: 0;
}

.name-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.teacher-name {
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.teacher-id {
    font-size: 12px;
    color: #4a9d4a;
}

.school-info {
    font-size: 12px;
    color: #4a9d4a;
    margin-top: 6px;
    line-height: 1.2;
}

/* 已修改为 teacher-tags */
.teacher-tags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: normal;
}

.tag.orange {
    background-color: #ff9800;
}

.tag.teal {
    background-color: #00bcd4;
}

.location-section {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.location-icon {
    width: 10px;
    height: 10px;
    font-size: 9px;
}

.location-text {
    font-size: 12px;
    color: #333;
    line-height: 1.2;
}

.subject-section {
    margin-bottom: 6px;
}

.subject-text {
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

.description {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    word-break: break-word;
    height: 36px;
}

.detail-button {
    width: 100%;
    padding: 5px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
    flex-shrink: 0;
}

.detail-button:hover {
    background-color: #333;
}

/* 教师卡片网格 */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 580px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 380px;
    }
    
    .teacher-card {
        padding: 12px;
        min-height: 200px;
    }
    
    .teacher-avatar {
        width: 50px;
        height: 65px;
    }
    
    .teacher-name {
        font-size: 14px;
    }
    
    .name-section {
        gap: 6px;
    }
}

/* ========== 注册/表单页面样式 ========== */
.register-container {
    max-width: var(--unified-max-width);
    width: 100%;
    margin: 20px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 面包屑容器 */
.breadcrumb-container {
    max-width: var(--unified-max-width);
    margin: 0 auto;
    padding: 20px 20px 0;
}

.breadcrumb-container .breadcrumb {
    font-size: 14px;
    color: #666;
    background: transparent;
    padding: 0;
    margin: 0;
}

.register-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.register-form {
    max-width: 100%;
}

.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-label {
    width: 120px;
    font-size: 14px;
    color: #333;
    text-align: right;
    padding-right: 15px;
    line-height: 36px;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    min-width: 200px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
    width: 100%;
    max-width: 400px;
}

.form-input:focus {
    outline: none;
    border-color: #52c41a;
    box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.1);
}

textarea.form-input {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    min-height: 100px;
}

.register-btn {
    display: block;
    width: 200px;
    height: 40px;
    background: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background: #389e0d;
}

/* ========== 平台介绍 ========== */
.cities-section {
    margin-top: 30px;
}

/* Company Section */
.company-section {
    max-width: var(--unified-max-width);
    margin: auto;
    padding: 60px 0;
    background: #fff;
}

.company-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    word-wrap: break-word;
    white-space: normal;
}

.company-description p {
    margin-bottom: 15px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.placeholder-text {
    background: #ddd;
    height: 20px;
    margin-bottom: 10px;
    border-radius: 3px;
}

/* Timeline Section */
.timeline-section {
    max-width: var(--unified-max-width);
    margin: auto;
    padding: 30px 0;
    background: white;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--main-color);
    z-index: 1;
}

.timeline-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    flex: 1;
    margin: 0 10px;
    text-align: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--main-color);
    border-radius: 50%;
}

.timeline-year {
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 10px;
}

.timeline-event {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Reviews Section */
.reviews-section {
    max-width: var(--unified-max-width);
    margin: auto;
    padding: 60px 0;
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.reviewer-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.reviewer-info p {
    color: #666;
    font-size: 14px;
}

.review-content {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.review-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, #ffa726, #ff7043);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="8" fill="rgba(255,193,7,0.8)"/><circle cx="70" cy="70" r="12" fill="rgba(255,152,0,0.8)"/><path d="M20 80 Q50 60 80 80" stroke="rgba(255,235,59,0.8)" stroke-width="3" fill="none"/></svg>');
}

/* ========== 联系我们 / 微信社群 / 右侧客服悬浮窗（新增）========== */
.contact-container {
    max-width: var(--unified-max-width);
    margin: 20px auto;
    padding: var(--unified-padding);
}
.contact-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-section {
    flex: 1;
}

.contact-qr-section {
    width: 200px;
    text-align: center;
    border-left: 1px solid #f0f0f0;
    padding-left: 50px;
}

.main-qr-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto;
    display: block;
}

.qr-info-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.qr-sub-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.hotline-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.city-contact-list {
    margin-bottom: 20px;
}

.city-contact-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.city-name {
    display: inline-block;
    width: 120px;
    color: #333;
}

.business-cooperation {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.business-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.business-contact {
    font-size: 14px;
    color: #333;
}

.wechat-groups-section {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.groups-main-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    font-weight: normal;
    text-align: center;
}

.qr-codes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 30px;
}

.qr-code-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-image {
    height: 160px;
    margin: 0 auto 10px auto;
    display: block;
}

.qr-code-label {
    font-size: 13px;
    color: #333;
    line-height: 1.2;
}

.description-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.right-sidebar-widget {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.smart-service-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 24px;
}

.service-qr-popup {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.service-qr-image {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

.service-text-line {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.content-container {
    display: flex;
    align-items: flex-start;
}

.content-qrcode {
    text-align: center;
    margin-left: 60px;
    margin-right: 50px;
}

.content-qrcode img {
    width: 150px;
    height: 150px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.content-qrcode p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #555;
}

.info {
    flex: 1;
    line-height: 1.8;
}

.info h3 {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: bold;
}

.info .line {
    margin-bottom: 6px;
}

.highlight {
    font-weight: bold;
    margin-top: 10px;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .cards-container {
        gap: 15px;
    }
    .image-container {
        width: 360px;
        height: 160px;
    }
    .main-text {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .schools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .scan-module {
        width: 160px;
        height: 160px;
        padding: 7px;
    }
    .side-qr-code {
        width: 100px;
        height: 100px;
        margin: 0 0 9px 0;
        border-radius: 6px;
    }
    .scan-text {
        font-size: 10px;
        line-height: 1.3;
    }
    .back-to-top-container {
        bottom: 20px;
        right: 20px;
    }
    .back-to-top {
        width: 45px;
        height: 45px;
    }
}

/* ========== 移动端菜单强制显示规则 ========== */
@media (max-width: 900px) {
    header .menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important;
    }

    body #mobile-menu-container {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: #ffffff !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-left: 1px solid #eee !important;
        transition: right 0.3s ease !important;
        z-index: 99999 !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body #mobile-menu-container.active {
        right: 0 !important;
        display: flex !important;
        z-index: 99999 !important;
    }

    body #menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 99998 !important;
    }

    body #menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 确保移动端菜单内容可见 */
    body #mobile-menu-container .mobile-nav-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body #mobile-menu-container .mobile-auth-section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ========== 统一移动端菜单修复 ========== */
@media (max-width: 900px) {
    #menu-toggle,
    header .menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important;
    }

    body #mobile-menu-container {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: #ffffff !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-left: 1px solid #eee !important;
        transition: right 0.3s ease !important;
        z-index: 99999 !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body #mobile-menu-container.active {
        right: 0 !important;
        display: flex !important;
        z-index: 99999 !important;
    }

    body #menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 99998 !important;
    }

    body #menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body #mobile-menu-container .mobile-nav-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body #mobile-menu-container .mobile-auth-section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ========== 统一富文本换行修复 ========== */
.company-description,
.company-description *,
.company-description p,
.company-description span,
.company-description div,
#system-description,
#system-description *,
#system-description p,
#system-description span,
#system-description div,
.claimer,
.claimer *,
.claimer p,
.claimer span,
.claimer div,
.class-fee-content,
.class-fee-content *,
.class-fee-content p,
.class-fee-content span,
.class-fee-content div,
.class-fee-content ul,
.class-fee-content li,
.class-fee-content table,
.class-fee-content tbody,
.class-fee-content tr,
.class-fee-content td,
.class-fee-tip,
.class-fee-tip *,
.class-fee-tip p,
.class-fee-tip span,
.class-fee-tip div,
.class-fee-tip ul,
.class-fee-tip li,
[style*="white-space"],
[style*="white-space: pre"] {
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ========== 联系我们页面移动端自适应 ========== */
@media (max-width: 900px) {
    .contact-container {
        padding: 10px !important;
        margin: 10px auto !important;
    }

    .wechat-groups-section {
        padding: 15px !important;
    }

    .content-container {
        flex-direction: column !important;
        align-items: center !important;
    }

    .content-qrcode {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .content-qrcode img {
        max-width: 150px !important;
        height: auto !important;
    }

    .info {
        width: 100% !important;
        padding: 0 10px !important;
    }

    .info h3 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .info .line {
        font-size: 12px !important;
        line-height: 1.6 !important;
        word-break: break-all !important;
        white-space: normal !important;
        margin-bottom: 8px !important;
    }

    .qr-codes-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .qr-code-image {
        height: 100px !important;
        width: 100px !important;
        object-fit: cover !important;
    }

    .groups-main-title {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
}
