/* ===== CSS变量定义 ===== */
:root {
    --primary-bg: #000;
    --secondary-bg: #1a1a1a;
    --text-color: #fff;
    --accent-color: #929292;
    --hover-color: #aaa;
    --card-bg: rgba(255, 255, 255, 0.1);
    
    /* 字体大小 */
    --font-xs: 0.9rem;
    --font-sm: 1rem;
    --font-md: 1.1rem;
    --font-lg: 1.2rem;
    --font-xl: 1.5rem;
    --font-xxl: 2rem;
    --font-xxxl: 2.5rem;
    
     /* 间距 */
  --space-xs: 10px;
  --space-sm: 15px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  --space-xxl: 50px;
  --space-section: 80px;
}

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

body, html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: var(--primary-bg);
    color: var(--text-color);
    height: 100%;
}

/* ===== 主要内容区域 ===== */
main {
    margin-top: 70px;
    min-height: calc(100vh - 200px);
}

/* 英雄区域 - 图片背景和文字 */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/contact/building-7879891_1280.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* 联系信息区域 */
.contact-section {
    padding: 80px 20px;
    background-color: var(--secondary-bg);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.office-info h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.info-item i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.info-item strong {
    color: var(--text-color);
    display: inline-block;
    min-width: 60px;
}

/* ===== 业务咨询区域样式 - 修正版 ===== */
.business-inquiry {
    padding: 10px;
    border-radius: 22px;
    height: fit-content;
}

.inquiry-types {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

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

.inquiry-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.inquiry-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.inquiry-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0;
}

/* 发送咨询按钮样式 - 修正版 */
.inquiry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #6b6b6b);
    color: var(--text-color);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    grid-column: 1 / 4; /* 关键：让按钮跨越三列 */
    margin-top: 10px;
}

.inquiry-btn:hover {
    background: linear-gradient(135deg, #6b6b6b, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== 联系信息链接样式 ===== */
.info-item a {
    color: var(--text-color) !important; /* 强制白色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--hover-color) !important; /* 悬停时使用定义的悬停颜色 */
    text-decoration: underline;
}

/* 二维码区域 */
.qr-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.qr-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.qr-images {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qr-images img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qr-section p {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* ===== 头部与导航 ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo a {
    display: block;
    width: 60px;
    height: auto;
}

.logo img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--hover-color);
}

nav ul li a.active {
    color: var(--hover-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 菜单按钮样式 */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-button .dot {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1, .hero-content p {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    /* 导航菜单 */
    .menu-button {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    nav ul li a {
        font-size: 18px;
        padding: 15px 0;
    }

    /* 英雄区域 */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    /* 联系信息区域 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .business-inquiry {
        padding: 25px;
    }
    
    .inquiry-types {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .inquiry-item {
        padding: 20px 15px;
    }
    
    .inquiry-item h4 {
        font-size: 1.1rem;
    }
    
    .inquiry-item p {
        font-size: 0.9rem;
    }
    
    .inquiry-btn {
        padding: 12px 20px;
        font-size: 1rem;
        grid-column: 1; /* 在移动端，按钮只占一列 */
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .office-info, .qr-section {
        padding: 20px;
    }
    
    .office-info h2 {
        font-size: 1.5rem;
    }
    
    .qr-images img {
        width: 150px;
        height: 150px;
    }
    
    .business-inquiry {
        padding: 20px;
    }
    
    .inquiry-item {
        padding: 15px 12px;
    }
    
    .inquiry-btn {
        padding: 10px 15px;
    }
}