/* ===== 基础重置 & 变量 ===== */
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --bg-dark: #f0f3f5;
    --bg-card: #ffffff;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* 导航链接 */
.nav ul { display: flex; gap: 32px; }
.nav a {
    font-size: 0.95rem;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary-light);
    transition: width 0.3s;
}
.nav a:hover { color: var(--primary-light); }
.nav a:hover::after { width: 100%; }

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.hero-sub {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    letter-spacing: 4px;
}
.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: var(--font);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.5);
}
.btn-large { padding: 18px 50px; font-size: 1.25rem; }

/* ===== 通用区块 ===== */
.section {
    padding: 80px 0;
}
.section-dark {
    background: var(--bg-dark);
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px; height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}
.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text);
}
.about-highlights {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}
.about-highlights li {
    font-size: 1rem;
    color: var(--text);
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}
.card-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}
.card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.card-phone {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
}
.card-phone:hover { color: var(--accent-hover); }

/* ===== 服务项目 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.service-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.service-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 图库 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    aspect-ratio: 4 / 3;
}
.gallery-item:hover {
    transform: scale(1.02);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== 联系我们 ===== */
.contact-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow);
}
.contact-info {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}
.contact-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.contact-item:last-child { border-bottom: none; }
.contact-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
    font-size: 0.95rem;
}
.contact-value {
    color: var(--text);
    font-size: 0.95rem;
}
.contact-value[href^="tel"] {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}
.contact-value[href^="tel"]:hover { color: var(--accent-hover); }
.contact-tip {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== 底部 ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-inner { height: 56px; }
    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 56px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .nav.open { max-height: 300px; }
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .nav li { border-bottom: 1px solid #f0f0f0; }
    .nav li:last-child { border-bottom: none; }
    .nav a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }
    .nav a::after { display: none; }

    .hero { min-height: 90vh; padding: 100px 20px 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1.1rem; letter-spacing: 2px; }
    .hero-desc { font-size: 0.9rem; }

    .section { padding: 50px 0; }
    .section-title { font-size: 1.4rem; }

    .about-grid { grid-template-columns: 1fr; }
    .about-card { margin-top: 10px; }

    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { aspect-ratio: 16 / 9; }

    .contact-card { padding: 28px 20px; }
    .contact-item { flex-direction: column; gap: 2px; }
    .contact-label { min-width: auto; }

    .btn { padding: 12px 28px; font-size: 1rem; }
    .btn-large { padding: 16px 40px; font-size: 1.1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr 240px; gap: 24px; }
}
