/* ========================================
   素觅文旅建站 - 复古工业风全局样式
   水泥灰 + 砖红 + 墨黑配色体系
   ======================================== */

:root {
    --cement-dark: #2a2a2a;
    --cement-medium: #3d3d3d;
    --cement-light: #5a5a5a;
    --brick-red: #8b3127;
    --brick-red-light: #a94438;
    --ink-black: #1a1a1a;
    --rust-orange: #c45c3e;
    --concrete-gray: #6b6b6b;
    --metal-silver: #8c8c8c;
    --warm-white: #f5f3ef;
    --aged-paper: #e8e4d9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--cement-dark);
    color: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/bg-texture.jpg');
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   导航栏样式 - 阶梯式错位设计
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, var(--ink-black) 0%, rgba(26,26,26,0.95) 100%);
    border-bottom: 3px solid var(--brick-red);
    transition: all 0.4s ease;
    padding: 0;
}

.site-header.scrolled {
    background: linear-gradient(180deg, var(--cement-dark) 0%, rgba(42,42,42,0.98) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--brick-red);
    border-radius: 3px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--warm-white);
    text-transform: uppercase;
    position: relative;
}

.logo-text::after {
    content: 'SUMEIYU';
    display: block;
    font-size: 0.6rem;
    letter-spacing: 8px;
    color: var(--brick-red);
    margin-top: 5px;
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    display: inline-block !important;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--metal-silver);
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brick-red);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--warm-white);
    border-color: var(--brick-red);
    background: rgba(139,49,39,0.1);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--warm-white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   页脚样式 - 工业风模块化设计
   ======================================== */

.site-footer {
    background: linear-gradient(180deg, var(--cement-medium) 0%, var(--ink-black) 100%);
    border-top: 4px solid var(--brick-red);
    padding: 80px 0 40px;
    margin-top: 100px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 1.2rem;
    color: var(--warm-white);
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
}

.footer-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--brick-red);
}

.footer-section p {
    color: var(--metal-silver);
    font-size: 0.95rem;
    line-height: 2;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--metal-silver);
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brick-red);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--warm-white);
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--metal-silver);
    font-size: 0.95rem;
}

.contact-icon {
    color: var(--brick-red);
    font-size: 1.1rem;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--cement-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--concrete-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cement-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--metal-silver);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--brick-red);
    background: var(--brick-red);
    color: var(--warm-white);
}

/* ========================================
   通用组件样式
   ======================================== */

.section-title {
    font-size: 2.5rem;
    color: var(--warm-white);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--brick-red);
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--brick-red);
    background: transparent;
    color: var(--warm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brick-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--brick-red);
}

.btn-primary:hover {
    background: var(--brick-red-light);
    border-color: var(--brick-red-light);
}

.card {
    background: var(--cement-medium);
    border: 1px solid var(--cement-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--brick-red);
    transition: height 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--brick-red);
    box-shadow: 0 10px 40px rgba(139,49,39,0.2);
}

.card:hover::before {
    height: 100%;
}

/* ========================================
   动画效果
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--ink-black);
        flex-direction: column !important;
        padding: 100px 30px 40px;
        gap: 5px;
        transition: right 0.4s ease;
        border-left: 3px solid var(--brick-red);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header-inner {
        padding: 20px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-text::after {
        font-size: 0.5rem;
        letter-spacing: 5px;
    }
}
