/* ========================================
   万石网企业网站样式表 - 大气版
   设计理念：深邃蓝+雅致金，专业与品质并存
   参考案例：华为云、腾讯云、阿里巴巴
   ======================================== */

:root {
    --primary: #3b7ddd;
    --primary-light: #5a94e5;
    --primary-lighter: #eef3fc;
    --primary-dark: #2a5fb3;
    --accent: #c9a96e;
    --accent-light: #dcc28f;
    --accent-dark: #b08f52;
    --text-primary: #2c3e50;
    --text-secondary: #5a6d7e;
    --text-tertiary: #94a3b3;
    --bg-white: #ffffff;
    --bg-section: #f8fafc;
    --bg-section-alt: #f1f5f9;
    --border-light: #e2e8f0;
    --border-lighter: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border-lighter);
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-wrapper {
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--primary);
    background: var(--primary-lighter);
    font-weight: 600;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   首页横幅
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a3a6c 0%, #2a5fb3 30%, #3b7ddd 60%, #5a94e5 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 169, 110, 0.08) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(26, 58, 108, 0.3), transparent);
}

.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" width="100" height="100"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.3" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
    max-width: 800px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 16px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 16px;
    margin-bottom: 48px;
    opacity: 0.75;
    letter-spacing: 3px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #2c3e50;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 169, 110, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-block {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2.5s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

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

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

.section-title {
    font-size: 38px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
}

.title-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ========================================
   关于我们
   ======================================== */
.about {
    background: var(--bg-section);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h3 {
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px 12px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-lighter);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* ========================================
   核心业务
   ======================================== */
.business {
    background: white;
    position: relative;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.business-card {
    padding: 40px 28px;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-lighter);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.business-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(59, 125, 221, 0.2);
}

.card-icon i {
    font-size: 30px;
    color: white;
}

.business-card h3 {
    font-size: 19px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

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

.business-model {
    background: linear-gradient(135deg, #1a3a6c, #3b7ddd);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.business-model::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.12), transparent 70%);
    pointer-events: none;
}

.business-model h3 {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.business-model p {
    font-size: 17px;
    line-height: 1.9;
    opacity: 0.92;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   发展历程
   ======================================== */
.history {
    background: var(--bg-section);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-lighter), var(--border-light), var(--primary-lighter));
}

.timeline-item {
    position: relative;
    padding: 24px 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-lighter);
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

.timeline-content {
    width: 44%;
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-lighter);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 56%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 56%;
}

.timeline-year {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   荣誉资质
   ======================================== */
.honors {
    background: white;
    position: relative;
}

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

.honor-card {
    padding: 32px;
    background: white;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-lighter);
    position: relative;
}

.honor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.honor-card.highlight {
    background: linear-gradient(135deg, #1a3a6c, #3b7ddd);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(59, 125, 221, 0.2);
}

.honor-card.highlight:hover {
    box-shadow: 0 12px 32px rgba(59, 125, 221, 0.3);
}

.honor-card.highlight h4,
.honor-card.highlight p {
    color: white;
}

.honor-card.highlight .honor-year {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.honor-year {
    display: inline-block;
    padding: 4px 16px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.honor-card h4 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* ========================================
   成功案例
   ======================================== */
.cases {
    background: var(--bg-section);
    position: relative;
}

.cases-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.cases-intro strong {
    color: var(--primary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-item {
    padding: 32px 20px;
    background: white;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-lighter);
}

.case-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.case-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 14px;
    opacity: 0.85;
    transition: var(--transition);
}

.case-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.case-item h4 {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   联系我们
   ======================================== */
.contact {
    background: white;
    position: relative;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 800px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 125, 221, 0.18);
}

.info-icon i {
    font-size: 22px;
    color: white;
}

.info-text h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.info-text p {
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-size: 14px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(160deg, #1a3a6c, #2a5fb3, #3b7ddd);
    color: white;
    padding: 56px 0 40px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201, 169, 110, 0.06), transparent);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

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

.footer-desc {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.5;
}

.footer-icp {
    font-size: 13px;
    margin-top: 8px;
}

.footer-icp a {
    color: white;
    text-decoration: none;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-icp a:hover {
    opacity: 0.8;
}

/* ========================================
   返回顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        gap: 4px;
    }

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

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 14px;
        letter-spacing: 2px;
    }

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

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

    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

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

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 56px);
        margin-left: 56px !important;
        margin-right: 0 !important;
    }

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

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

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

    section {
        padding: 72px 0;
    }

    .business-model {
        padding: 40px 24px;
    }

    .business-model h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .stat-number {
        font-size: 28px;
    }
}
