/* =========================================
   网学首页扩展样式 - 参考文希AI写作站点
   ========================================= */

/* =========================================
   Hero Section 现代化升级
   ========================================= */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #2563eb 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 动态背景装饰 */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-float {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.hero-float-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.hero-float-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -50px;
    animation-delay: -5s;
}

.hero-float-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

.hero-float-4 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 20%;
    animation-delay: -15s;
}

.hero-float-5 {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 10%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -30px) scale(1.1); opacity: 0.7; }
    50% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(20px, 30px) scale(1.05); opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideDown 0.6s ease forwards;
}

.hero-badge.pulse {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-main-badge {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-title-line {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-subtitle-icon {
    margin-right: 0.5rem;
}

.hero-subtitle-highlight {
    color: #fbbf24;
    font-weight: 600;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.hero-badge-item:nth-child(1) { animation-delay: 0.1s; }
.hero-badge-item:nth-child(2) { animation-delay: 0.2s; }
.hero-badge-item:nth-child(3) { animation-delay: 0.3s; }
.hero-badge-item:nth-child(4) { animation-delay: 0.4s; }

.hero-badge-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.badge-icon {
    font-size: 1.125rem;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a5f;
    box-shadow: 0 4px 15px rgba(251,191,36,0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251,191,36,0.5);
    color: #1e3a5f;
}

.hero-btn-primary .btn-icon {
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.hero-btn-outline {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    color: #fff;
}

.btn-icon-small {
    font-size: 1.125rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trust-num {
    font-weight: 700;
    color: #fbbf24;
}

.trust-divider {
    color: rgba(255,255,255,0.3);
}

/* =========================================
   优势数据卡片升级
   ========================================= */
.adv-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.adv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.2), transparent);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.adv-card {
    position: relative;
    cursor: pointer;
}

.adv-card-inner {
    position: relative;
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(37,99,235,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.adv-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.adv-card:hover .adv-card-inner::before {
    opacity: 1;
}

.adv-card:hover .adv-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.15), 0 0 0 1px rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.2);
}

.adv-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.adv-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(59,130,246,0.15) 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.adv-card:hover .adv-icon-bg {
    background: linear-gradient(135deg, rgba(37,99,235,0.2) 0%, rgba(59,130,246,0.25) 100%);
    transform: scale(1.1);
}

.adv-icon-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
    z-index: 1;
}

.adv-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: rgba(37,99,235,0.3);
    border-radius: 50%;
    filter: blur(15px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.adv-card:hover .adv-icon-glow {
    opacity: 1;
}

.adv-value {
    font-size: 1.625rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
}

.adv-card:hover .adv-value {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.adv-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.adv-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.adv-card:hover .adv-card-shine {
    left: 100%;
}

/* =========================================
   栏目标签 */
.zone-tag {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* 标签页 */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
}
.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-normal);
    font-family: inherit;
}
.tab-btn:hover { color: var(--primary-600); }
.tab-btn.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 学科标签 */
.subjects-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0;
}
.subject-tag {
    padding: 0.5rem 1.25rem;
    background: var(--text-white);
    border: 1px solid var(--primary-100);
    border-radius: 999px;
    color: var(--primary-700);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}
.subject-tag:hover {
    background: var(--primary-600);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 服务流程 */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    position: relative;
}
.flow-item {
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: var(--text-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all var(--transition-normal);
}
.flow-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}
.flow-num {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 700;
}
.flow-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
}
.flow-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}
.flow-desc {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* 价格套餐 */
.pkg-card {
    background: var(--text-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}
.pkg-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.pkg-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}
.pkg-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}
.pkg-level {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}
.pkg-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600);
    margin-bottom: 0.75rem;
}
.pkg-guarantee {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
    min-height: 3rem;
}

/* 行业资讯 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--text-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}
.news-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.news-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 3rem;
}
.news-content { flex: 1; }
.news-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}
.news-desc {
    font-size: 0.8125rem;
    color: var(--gray-600);
}
.news-arrow {
    color: var(--primary-600);
    font-size: 1.25rem;
}

/* 响应式 */
@media (max-width: 1024px) {
    .adv-grid { grid-template-columns: repeat(3, 1fr); }
    .flow-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   导航下拉菜单
   ============================================================ */
.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}
.navbar-menu > li {
    position: relative;
}
.navbar-menu .navbar-link {
    display: block;
}

/* 下拉容器 */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    cursor: pointer;
}
.nav-caret {
    font-size: 0.625rem;
    margin-left: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}

/* 下拉面板 */
.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--text-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
    /* 左对齐，不居中 */
    left: 0;
    transform: translateX(0) translateY(-8px);
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 14px;
    height: 8px;
    background: var(--text-white);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

/* hover 显示下拉 */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
    color: var(--primary);
    background: var(--primary-50);
}

/* 下拉项 */
.nav-dropdown-item {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}
.nav-dropdown-item.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-50);
}

/* 响应式：768px 以下收起为汉堡菜单 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--text-white);
        padding: 1rem;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--gray-200);
        gap: 0;
    }
    .navbar-menu.active {
        display: flex;
    }
    .navbar-menu .navbar-link {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
    }
    .nav-dropdown {
        position: relative;
    }
    .nav-dropdown-toggle .nav-caret {
        float: right;
        margin-top: 0.25rem;
        transition: transform 0.2s ease;
    }
    .nav-dropdown.active .nav-dropdown-toggle .nav-caret {
        transform: rotate(180deg);
    }
    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--gray-100);
        border-radius: 0;
        padding: 0 0 0.5rem 1.25rem;
        background: var(--gray-50);
        opacity: 1 !important;
        visibility: visible !important;
    }
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-menu::before {
        display: none;
    }
    .nav-dropdown-item {
        padding: 0.5rem 1rem;
    }
    .navbar-cta {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* =========================================
   Hero 响应式样式
   ========================================= */
@media (max-width: 1024px) {
    .hero-section {
        padding: 3.5rem 0 3rem;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-title-line {
        font-size: 1.5rem;
    }
    .adv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    .hero-title {
        font-size: 1.875rem;
    }
    .hero-title-line {
        font-size: 1.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-badges {
        gap: 0.75rem;
    }
    .hero-badge-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .hero-cta-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
    }
    .trust-divider {
        display: none;
    }
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adv-card-inner {
        padding: 1.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    .hero-title {
        font-size: 1.625rem;
    }
    .hero-title-line {
        font-size: 1.125rem;
    }
    .hero-badge-wrapper {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    .hero-badge-item {
        width: fit-content;
    }
    .adv-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .adv-value {
        font-size: 1.375rem;
    }
}

/* ============================================================
   移动端汉堡按钮动画
   ============================================================ */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
