/* ===== 全局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5a3f;
    --primary-light: #4a8c6b;
    --accent: #e8a838;
    --bg: #fafafa;
    --bg-alt: #f0f4f1;
    --text: #333;
    --text-light: #666;
    --card-bg: #fff;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ===== Hero ===== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.hero .desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 24px;
}

.btn-hero {
    font-size: 1rem;
    padding: 14px 40px;
}

/* ===== 通用 Section ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.service-card {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.service-example {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== 案例展示 ===== */
.cases-list {
    max-width: 700px;
    margin: 0 auto;
}

.case-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.case-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: #fff;
    border-radius: 12px;
    font-size: 0.8rem;
}

.case-desc {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.8;
}

.case-desc strong {
    color: var(--primary);
}

/* ===== 服务流程 ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.step {
    text-align: center;
}

.step-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== 留言板/表单 ===== */
.msg-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row input {
    flex: 1;
}

.msg-form input,
.msg-form textarea,
.msg-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.msg-form input:focus,
.msg-form textarea:focus,
.msg-form select:focus {
    border-color: var(--primary-light);
}

.msg-form textarea {
    margin-bottom: 12px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-light);
}

.btn:active {
    transform: scale(0.97);
}

.msg-list {
    max-width: 600px;
    margin: 0 auto;
}

.msg-item {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.msg-item .msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.msg-item .msg-name {
    font-weight: 600;
    color: var(--primary);
}

.msg-item .msg-time {
    font-size: 0.8rem;
    color: #aaa;
}

.msg-item .msg-body {
    color: var(--text);
    font-size: 0.95rem;
}

/* ===== 联系方式 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.contact-card {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== 页脚 ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}

/* ===== 留手机号反馈 ===== */
.lead-feedback {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 1.4em;
}
.lead-ok  { color: #22a06b; }
.lead-err { color: #e5484d; }

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
    }

    .nav-links {
        gap: 12px;
        font-size: 0.8rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .case-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
