/* ========== 基础重置与变量 ========== */
:root {
    --primary-color: #1a3a6b;
    --secondary-color: #c9a96e;
    --accent-color: #2563eb;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* ========== 导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo div {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--text-color);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(26, 58, 107, 0.06);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ========== 主视觉区域 ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 107, 0.85) 0%, rgba(15, 32, 60, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--secondary-color), #d4b87a);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 169, 110, 0.5);
}

/* 英雄区双按钮 */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-button-small {
    display: inline-block;
    padding: 8px 24px;
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
}

.cta-button-small:hover {
    background: #d4b87a;
}

/* ========== 通用区块 ========== */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 48px;
    position: relative;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== 关于我们 ========== */
.about-content {
    display: flex;
    gap: 48px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* ========== 服务项目 ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    padding: 36px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== 平台特色 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-hover);
}

.feature-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== 新闻资讯 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content time {
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-content h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin: 8px 0;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

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

/* ========== 联系我们 ========== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-item {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

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

/* ========== 页脚 ========== */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-section h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ========== 响应式设计 ========== */

/* 平板 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

/* 手机横屏 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 12px;
        margin-top: 20px;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 36px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image img {
        height: 240px;
    }

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

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

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        height: 60px;
    }

    .logo div {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .cta-button {
        padding: 12px 36px;
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}
