/* 
 * 湖北省竹雾禾网络科技有限公司 - 官方网站样式表
 * Design Style: Refined Corporate Tech
 */

:root {
    /* Color System */
    --primary-color: #0F2C59;       /* 深邃午夜蓝 */
    --secondary-color: #1E4D8C;     /* 较亮的蓝 */
    --accent-color: #00D2FC;        /* 科技青 */
    --text-dark: #333333;           /* 深色正文 */
    --text-light: #666666;          /* 浅色辅助文 */
    --bg-light: #F8F9FA;            /* 浅灰背景 */
    --white: #FFFFFF;
    --border-color: #E9ECEF;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 6px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
    margin-left: 8px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 600px; /* Reduced from 100vh for better fold visibility */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 252, 0.4);
    background-color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 16px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #0A1E3F;
    color: #a0a0a0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Contact Page Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 40px; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.3s;
        box-shadow: var(--shadow-sm);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}
