/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --red: #dc2626;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 顶部信息栏 */
.top-bar {
    background: #1e3a5f;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    gap: 30px;
}

.top-info span {
    opacity: 0.9;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo .slogan {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    letter-spacing: 2px;
}

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

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* 轮播图区域 */
.hero {
    height: 700px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,181.3C672,192,768,160,864,128C960,96,1056,64,1152,74.7C1248,85,1344,139,1392,165.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    z-index: 1;
    padding: 20px;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
    opacity: 0.95;
    letter-spacing: 2px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-feature-item {
    text-align: center;
}

.feature-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 14px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 16px 45px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

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

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Section 通用样式 */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: var(--bg-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 25px;
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* 业务领域 */
.business-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.business-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.business-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.business-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.business-icon {
    font-size: 50px;
}

.business-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.business-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
}

/* 核心优势 */
.advantage-section {
    background: #f8fafc;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.advantage-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.advantage-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.advantage-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* 产品中心 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.product-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 14px;
}

/* 解决方案 */
.solution-item {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.solution-item h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.solution-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 关于我们 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.info-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item p {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* 新闻动态 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px 20px 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding: 20px 0 20px 40px;
    margin-left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 25px;
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
    right: auto;
}

.timeline-date {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    min-width: 120px;
}

.timeline-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.timeline-date .month {
    display: block;
    font-size: 14px;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-left: 20px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 20px;
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item .phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.detail-item p {
    font-size: 16px;
    color: var(--white);
}

/* 党建工作 */
.party-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.party-section .section-title {
    color: white;
}

.party-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

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

.party-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.party-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.party-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.party-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.party-card p {
    opacity: 0.9;
    line-height: 1.8;
}

/* 新闻动态 */
.news-section {
    background: #f8fafc;
}

.news-grid {
    display: grid;
    gap: 30px;
}

.news-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 30px;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.news-date {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
}

.news-date .day {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.news-date .month {
    font-size: 14px;
    opacity: 0.9;
}

.news-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 合作伙伴 */
.partners-section {
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    background: #f8fafc;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.partner-item:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* 页脚 */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 0;
}

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

.footer-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-contact {
    margin-top: 20px;
}

.qr-code {
    margin-top: 15px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

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

/* 人类发展进程 */
.evolution-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.evolution-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.evolution-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.line-progress {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #3b82f6 100%);
    animation: lineGrow 8s ease-in-out forwards;
}

@keyframes lineGrow {
    0% {
        height: 0%;
    }
    25% {
        height: 25%;
    }
    50% {
        height: 50%;
    }
    75% {
        height: 75%;
    }
    100% {
        height: 100%;
    }
}

.evolution-stage {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: stageAppear 1s ease forwards;
}

.evolution-stage:nth-child(odd) {
    flex-direction: row-reverse;
}

.evolution-stage:nth-child(2) {
    animation-delay: 2s;
}

.evolution-stage:nth-child(3) {
    animation-delay: 4s;
}

.evolution-stage:nth-child(4) {
    animation-delay: 6s;
}

.evolution-stage:nth-child(5) {
    animation-delay: 8s;
}

@keyframes stageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage-icon-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.evolution-stage.active .stage-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stage-icon {
    font-size: 56px;
}

.stage-content {
    flex: 1;
    max-width: 400px;
}

.evolution-stage:nth-child(odd) .stage-content {
    text-align: right;
}

.stage-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fbbf24;
}

.evolution-stage.active .stage-content h3 {
    color: #3b82f6;
}

.stage-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.stage-content p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.evolution-message {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.evolution-message p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.evolution-message strong {
    color: #3b82f6;
    font-size: 24px;
}

/* 快速导航 */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.quick-nav-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.quick-nav-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.quick-nav-item .nav-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.quick-nav-item h3 {
    color: #2563eb;
    font-size: 20px;
    margin-bottom: 10px;
}

.quick-nav-item p {
    color: #6b7280;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        height: 400px;
        margin-top: 70px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 50px 0;
    }

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

    .business-grid,
    .advantage-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-item::after {
        left: 12px;
        right: auto;
    }

    .timeline-date {
        min-width: 100px;
    }

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

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

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }
}
