/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #f59e0b;
    --accent: #fbbf24;
    --bg-light: #fef3e2;
    --bg-main: #fff7ed;
    --bg-card: #ffffff;
    --bg-hover: #ffedd5;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --border-color: #e7e5e4;
    --shadow-sm: 0 2px 8px rgba(249, 115, 22, 0.1);
    --shadow-md: 0 4px 16px rgba(249, 115, 22, 0.15);
    --shadow-lg: 0 8px 32px rgba(249, 115, 22, 0.2);
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    --gradient-banner: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部导航栏 - 八卦网站风格 */
.site-header {
    background: var(--bg-card);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

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

.site-logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1px;
}

.site-slogan {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-light);
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary);
    background: var(--bg-hover);
}

.nav-link.active::after {
    width: 70%;
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-button span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* 主横幅 - 八卦网站风格 */
.banner-section {
    background: var(--bg-light);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-banner);
    pointer-events: none;
}

.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text {
    animation: fadeInLeft 0.8s ease-out;
}

.banner-heading {
    font-size: 64px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.banner-subheading {
    font-size: 26px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 600;
}

.banner-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.banner-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 0.8s ease-out;
    position: relative;
}

.banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    pointer-events: none;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 主内容区 */
.content-main {
    padding: 0;
    background: var(--bg-main);
}

/* 关于区块 */
.about-section {
    padding: 90px 0;
    background: var(--bg-card);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.section-heading {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 28px;
}

.about-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 24px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* 新闻区块 - 八卦网站特色 */
.news-section {
    padding: 90px 0;
    background: var(--bg-main);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.more-button {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.more-button:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.news-body {
    padding: 24px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.news-time {
    font-size: 12px;
    color: var(--text-muted);
}

.news-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* 平台特色区块 */
.features-section {
    padding: 90px 0;
    background: var(--bg-card);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-img {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.4s;
}

.feature-card:hover .feature-img {
    border-color: var(--primary);
    transform: scale(1.1);
}

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

.feature-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 页面标题 */
.page-banner {
    background: var(--bg-card);
    padding: 70px 0;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-banner);
    opacity: 0.5;
    pointer-events: none;
}

.page-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* 内容详情 */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-title {
    font-size: 46px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 40px;
    line-height: 1.2;
}

.content-image {
    margin: 50px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.content-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    pointer-events: none;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.content-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin: 40px 0 24px;
}

.content-text p {
    margin-bottom: 24px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* 页脚 */
.site-footer {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 70px 0 28px;
    margin-top: 90px;
    border-top: 4px solid var(--primary);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    margin-bottom: 45px;
}

.footer-info {
    max-width: 600px;
}

.footer-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 22px;
}

.footer-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.nav-section {
    flex: 1;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 12px;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-list a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 999;
        border-top: 3px solid var(--primary);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    .menu-button {
        display: flex;
    }

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

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

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

    .banner-heading {
        font-size: 44px;
    }

    .banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .banner-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .section-heading {
        font-size: 32px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .banner-heading {
        font-size: 32px;
    }

    .page-title {
        font-size: 36px;
    }

    .content-title {
        font-size: 32px;
    }

    .section-heading {
        font-size: 28px;
    }
}
