﻿/* ========================
   全局基础
   ======================== */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f4f7;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ========================
   容器
   ======================== */
.container {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

/* ========================
   主卡片
   ======================== */
.card {
    background: white;
    border-radius: 14px;
    padding: 10px;
    margin-top: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* ========================
   标题
   ======================== */
h2 {
    text-align: center;
    color: #333;
    font-size: 22px;
    margin-bottom: 6px;
}

.sub-title {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ========================
   表单
   ======================== */
label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-top: 14px;
}

input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
}

    input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
    }

/* ========================
   按钮
   ======================== */
button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    font-size: 16px;
    background: #007bff;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

    button:hover {
        background: #0068d4;
    }

    button:disabled {
        background: #9ec5fe;
        cursor: not-allowed;
    }

/* ========================
   错误 / 成功提示
   ======================== */
.error {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fdecea;
    color: #b71c1c;
    border-left: 4px solid #c62828;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.success {
    margin-top: 10px;
    color: #2e7d32;
    font-size: 14px;
}

/* ========================
   FAQ 区块（保持功能，换风格）
   ======================== */
.faq {
    margin-top: 36px;
}

    .faq h3 {
        text-align: center;
        font-size: 18px;
        color: #333;
        margin-bottom: 16px;
    }

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    background: #fafafa;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .faq-question span {
        font-size: 18px;
        transition: transform .2s;
    }

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    background: #fff;
    padding: 0 16px;
    font-size: 14px;
    color: #555;
}

.faq-item.active .faq-answer {
    padding: 14px 16px;
}

/* ========================
   移动端优化
   ======================== */
@media (max-width: 520px) {
    body {
        padding: 5px;
    }

    .container {
        margin: 2px; /* 原来是 20px 16px */
        border-radius: 14px
    }

    h2 {
        font-size: 20px;
    }
}
