/* ========== 全局变量 ========== */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* ========== 头部导航 ========== */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========== 主内容区域 ========== */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* ========== Hero 区域 ========== */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--white), var(--light-bg));
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--accent-color);
}

.btn-secondary:hover {
    background: #2980b9;
}

/* ========== 卡片 ========== */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ========== 功能卡片网格 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ========== 服务卡片（首页） ========== */
.section-title {
    color: var(--primary-color) !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-title {
    color: var(--primary-color) !important;
    margin-bottom: 1rem !important;
}

.service-desc {
    margin-bottom: 1.5rem !important;
}

/* ========== 服务流程 ========== */
.service-steps-section {
    margin-top: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-item {
    text-align: center;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========== 表格 ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--primary-color);
    color: var(--white);
}

tr:hover {
    background: #f5f5f5;
}

/* ========== 报告 ========== */
.report-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.report-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ========== 评分显示 ========== */
.score-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.score-display .score {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* ========== 下载链接 ========== */
.download-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin: 0.5rem;
    transition: all 0.3s;
}

.download-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========== 手机端 (≤768px) ========== */
/* 自动检测屏幕宽度，无需JS。电脑端完全不受影响 */
@media (max-width: 768px) {

    body {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* 导航 */
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--primary-color) !important;
        flex-direction: column !important;
        padding: 1rem !important;
        box-shadow: var(--shadow) !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .logo h1 {
        font-size: 1.3rem !important;
    }

    .tagline {
        font-size: 0.75rem !important;
    }

    /* Hero */
    .hero-section {
        padding: 2rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    /* 卡片 */
    .card {
        padding: 1.2rem !important;
        margin-bottom: 1rem !important;
        border-radius: 8px !important;
    }

    .feature-card {
        padding: 1.2rem 1rem !important;
    }

    /* 标题 */
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 1rem !important; }

    /* 网格 → 单列 */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    /* 服务卡片 */
    .service-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-card {
        padding: 1.2rem 1rem !important;
    }

    .section-title {
        margin-bottom: 1rem !important;
    }

    /* 服务流程 */
    .service-steps-section {
        margin-top: 1.5rem !important;
    }

    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .step-circle {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* 按钮 */
    .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }

    .download-link {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        margin: 0.3rem !important;
    }

    /* 表单 */
    .form-group {
        margin-bottom: 1rem !important;
    }

    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }

    /* 表格 */
    th, td {
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
    }

    /* 评分 */
    .score-display {
        padding: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .score-display .score {
        font-size: 2rem !important;
        margin: 0.5rem 0 !important;
    }

    .score-display h3 {
        font-size: 1rem !important;
    }

    /* 报告 */
    .report-section {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .report-section h4 {
        font-size: 0.95rem !important;
    }

    /* 主内容 */
    .main-content {
        margin: 1rem auto !important;
        padding: 0 1rem !important;
    }

    /* 页脚 */
    .footer {
        padding: 2rem 0 1rem !important;
        margin-top: 2rem !important;
    }

    .footer-container {
        padding: 0 1rem !important;
        gap: 1.5rem !important;
    }

    .footer-section h3 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem !important;
    }

    .footer-bottom {
        padding-top: 1rem !important;
        margin-top: 1rem !important;
        font-size: 0.8rem !important;
    }

    /* 列表 */
    li {
        font-size: 0.9rem !important;
        line-height: 1.8 !important;
    }

    small {
        font-size: 0.8rem !important;
    }

    /* 覆盖内联 style 的 grid 布局 */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* 覆盖内联 style 的大字体 */
    div[style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
    }

    div[style*="font-size: 2rem"] {
        font-size: 1.2rem !important;
    }

    /* 覆盖内联 step-circle 样式 */
    div[style*="width: 60px"] {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ========== 超小屏幕 (≤480px) ========== */
@media (max-width: 480px) {
    body {
        font-size: 13px !important;
    }

    .hero-section h2 {
        font-size: 1.3rem !important;
    }

    .logo h1 {
        font-size: 1.1rem !important;
    }

    .card {
        padding: 1rem !important;
    }

    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .main-content {
        padding: 0 0.8rem !important;
    }

    .nav-container {
        padding: 0 0.8rem !important;
    }

    .footer-container {
        padding: 0 0.8rem !important;
    }

    .service-icon {
        font-size: 2rem !important;
    }

    div[style*="font-size: 4rem"] {
        font-size: 2rem !important;
    }

    div[style*="width: 60px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

/* ========== 平板 (769px–1024px) ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1.5rem !important;
    }

    .main-content {
        padding: 0 1.5rem !important;
    }

    .hero-section h2 {
        font-size: 2rem !important;
    }
}
