/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.logo h1 {
    color: #d4a574;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo p {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 2px;
}

/* 导航样式 */
.nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav a:hover {
    color: #d4a574;
    background-color: rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
}

.nav a.active {
    color: #1a1a1a;
    background-color: #d4a574;
    border-color: #d4a574;
}

/* 主要内容区域 */
.main {
    flex: 1;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* 首页英雄区域 */
.hero {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 16px;
    margin-bottom: 50px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 48px;
    color: #d4a574;
    margin-bottom: 20px;
    letter-spacing: 10px;
    font-weight: 300;
}

.hero p {
    font-size: 20px;
    color: #999;
    letter-spacing: 3px;
}

/* 区块卡片 */
.sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.section-card {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 165, 116, 0.3);
}

.section-card a {
    display: block;
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.section-card h3 {
    color: #d4a574;
    font-size: 24px;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.section-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 36px;
    color: #d4a574;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 5px;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2), transparent);
}

/* 关于我们页面 */
.about-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-card {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.about-card:hover {
    transform: scale(1.03);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.about-card h3 {
    color: #d4a574;
    padding: 25px;
    font-size: 22px;
    text-align: center;
    letter-spacing: 3px;
}

.about-card .preview {
    height: 250px;
    overflow: hidden;
}

.about-card .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-card:hover .preview img {
    transform: scale(1.1);
}

/* 作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.work-card {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 165, 116, 0.3);
}

.work-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-card h3 {
    color: #d4a574;
    padding: 15px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
}

.work-card .preview {
    height: 160px;
    overflow: hidden;
}

.work-card .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-card:hover .preview img {
    transform: scale(1.1);
}

/* 品牌区域 */
.brand-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-card {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.brand-card:hover {
    transform: scale(1.02);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.brand-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.brand-card h3 {
    color: #d4a574;
    padding: 30px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 5px;
}

.brand-card .preview {
    height: 350px;
    overflow: hidden;
}

.brand-card .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand-card:hover .preview img {
    transform: scale(1.08);
}

/* 图片画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    background: #252525;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* 联系页面 */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.contact-image {
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.contact-image img {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* 返回链接 */
.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    color: #d4a574;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 30px;
    border: 2px solid #d4a574;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 2px;
}

.back-link a:hover {
    background-color: #d4a574;
    color: #1a1a1a;
}

/* 底部 */
.footer {
    background: #0d0d0d;
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.footer p {
    color: #555;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Lightbox 样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #d4a574;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        gap: 25px;
        padding: 25px 30px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .about-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-sections {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main {
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .sections {
        grid-template-columns: 1fr;
    }
    
    .about-sections {
        grid-template-columns: 1fr;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .nav a {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #d4a574;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* 移动端适配 - 480px以下 */
@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
        border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    }
    
    .nav.active {
        max-height: 300px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
    }
    
    .nav li {
        border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        font-size: 14px;
        padding: 12px 0;
        display: block;
        border-radius: 0;
        border: none;
        color: #bbb;
    }
    
    .nav a:hover,
    .nav a.active {
        background-color: transparent;
        border-color: transparent;
        color: #d4a574;
    }
    
    .logo h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .logo p {
        font-size: 11px;
    }
    
    .main {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .section-card {
        padding: 25px 20px;
    }
    
    .section-card h3 {
        font-size: 20px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .work-item {
        height: auto;
    }
    
    .work-item img {
        height: 200px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .about-sections {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-large-card h3 {
        font-size: 20px;
        padding: 20px;
    }
    
    .environment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .environment-item img {
        height: 200px;
    }
    
    .contact-image {
        max-width: 100%;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .footer p {
        font-size: 12px;
    }
}
