/* 
 * 金沙集团 - 官方网站样式
 * Jinsha jituan Technology Co., Ltd.
 * Version: 1.0
 */

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #1a3c6e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a3c6e, #2e7d32);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a3c6e;
}

.logo-text span {
    color: #2e7d32;
}

.logo-sub {
    font-size: 0.75rem;
    color: #666;
    margin-left: 10px;
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

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

.nav-menu a {
    font-size: 1rem;
    color: #333;
    padding: 10px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a3c6e;
    transition: width 0.3s ease;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a3c6e;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
    height: 600px;
    background: linear-gradient(135deg, #1a3c6e 0%, #2e5a8e 50%, #1a3c6e 100%);
    display: flex;
    align-items: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    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 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #2e7d32;
    color: #fff;
    border: 2px solid #2e7d32;
}

.btn-primary:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1a3c6e;
}

/* ============================================
   Statistics Section
   ============================================ */
.stats {
    background: #f8f9fa;
    padding: 60px 0;
}

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

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a3c6e;
    margin-bottom: 10px;
}

.stat-number span {
    font-size: 1.2rem;
    color: #2e7d32;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: #fff;
}

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

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2e7d32;
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #1a3c6e;
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
}

.about-image-badge .number {
    font-size: 2rem;
    font-weight: bold;
}

.about-image-badge .text {
    font-size: 0.9rem;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #1a3c6e;
    margin-bottom: 20px;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
}

/* ============================================
   Products Section
   ============================================ */
.products {
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #1a3c6e;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #1a3c6e;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-link {
    color: #2e7d32;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    color: #1b5e20;
}

/* ============================================
   Solutions Section
   ============================================ */
.solutions {
    background: #1a3c6e;
    color: #fff;
}

.solutions .section-title h2 {
    color: #fff;
}

.solutions .section-title h2::after {
    background: linear-gradient(90deg, #fff, #2e7d32);
}

.solutions .section-title p {
    color: rgba(255,255,255,0.8);
}

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

.solution-card {
    background: rgba(255,255,255,0.1);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.solution-icon {
    width: 70px;
    height: 70px;
    background: rgba(46,125,50,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.solution-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   Advantages Section
   ============================================ */
.advantages {
    background: #fff;
}

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

.advantage-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3c6e, #2e5a8e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.advantage-content h3 {
    font-size: 1.3rem;
    color: #1a3c6e;
    margin-bottom: 10px;
}

.advantage-content p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   News Section
   ============================================ */
.news {
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 2rem;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content h3:hover {
    color: #1a3c6e;
}

.news-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #1a3c6e;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: #1a3c6e;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a3c6e;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1a3c6e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo-text {
    color: #fff;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #2e7d32;
}

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

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1a3c6e 0%, #2e5a8e 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* ============================================
   Inner Page Content
   ============================================ */
.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    color: #1a3c6e;
    margin: 40px 0 20px;
}

.content-wrapper h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 15px;
}

.content-wrapper p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-wrapper ul {
    margin: 20px 0;
    padding-left: 20px;
}

.content-wrapper ul li {
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.content-wrapper ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e7d32;
}

/* News Detail Page */
.news-detail {
    padding: 80px 0;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.news-detail-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-meta {
    color: #999;
    font-size: 0.9rem;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
}

.news-body p {
    color: #555;
    line-height: 2;
    margin-bottom: 20px;
    text-indent: 2em;
}

.news-body img {
    margin: 30px auto;
    border-radius: 8px;
}

.news-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-nav a {
    color: #666;
    transition: color 0.3s ease;
}

.news-nav a:hover {
    color: #1a3c6e;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero {
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
