/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a96e;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --gold: #c9a96e;
    --dark-gold: #a6834a;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img#logoImg {
    max-height: 50px;
    width: auto;
    display: none;
}

.logo h1 {
    font-size: 28px;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.logo span {
    font-size: 12px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    font-size: 14px;
    color: var(--secondary-color);
    padding: 5px 0;
    position: relative;
    font-weight: 500;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.slide-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 5px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--white);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--primary-color);
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 3px;
}

.section-header p {
    color: #666;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* ===== Products Section ===== */
.products {
    padding: 100px 0;
    background: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-text {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--dark-gold);
}

/* ===== Cases Section ===== */
.cases {
    padding: 100px 0;
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.case-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== About Preview ===== */
.about-preview {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 3px;
}

.about-text .subtitle {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 14px;
    line-height: 2;
    color: #666;
    margin-bottom: 30px;
}

.about-image {
    height: 400px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Honors Section ===== */
.honors {
    padding: 80px 0;
    background: var(--white);
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.honor-item {
    text-align: center;
    transition: all 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-5px);
}

.honor-img {
    aspect-ratio: 4 / 3;
    border: 1px solid #eee;
    background: #fafafa;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.honor-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.honor-item:hover .honor-img img {
    transform: scale(1.05);
}

.honor-item h4 {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== News Section ===== */
.news {
    padding: 100px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.news-date {
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 300;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.news-content h3 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content p {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col p {
    font-size: 14px;
    line-height: 2;
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    opacity: 0.6;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-logo {
    max-height: 45px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-qr {
    max-height: 100px;
    width: auto;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px;
    background: rgba(255,255,255,0.1);
    display: block;
}

.footer-brand p {
    font-size: 13px;
    opacity: 0.7;
    max-width: 220px;
}

/* ===== Page Header (Common) ===== */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    opacity: 0.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .honors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .honors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 80px 30px;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .features-grid,
    .products-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}
