/* ===== 全局重置与变量 ===== */
:root {
    --primary: #d97706;
    --primary-light: #f59e0b;
    --primary-dark: #92400e;
    --secondary: #1e293b;
    --accent: #fef3c7;
    --bg-light: #fffbeb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(217,119,6,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217,119,6,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--secondary);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-cta {
    background: var(--primary);
    padding: 8px 20px !important;
    border-radius: 50px;
    color: var(--white) !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--secondary);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #92400e 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(217,119,6,0.15), transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(251,191,36,0.2);
    border: 1px solid rgba(251,191,36,0.3);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .highlight {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stats div {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.hero-stats span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--secondary);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-features {
    list-style: none;
    margin-bottom: 28px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.about-features li i {
    color: var(--primary);
    width: 20px;
}

/* ===== Advantages ===== */
.advantages {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(217,119,6,0.08);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(217,119,6,0.12);
    border-color: var(--primary-light);
}

.adv-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), #fde68a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.advantage-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

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

/* ===== Process ===== */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 220px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-arrow {
    color: var(--primary-light);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.process-timeline {
    display: none;
}

/* ===== Shops ===== */
.shops {
    background: var(--white);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shop-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(217,119,6,0.06);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.shop-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.shop-card .shop-info {
    padding: 20px;
}

.shop-card .shop-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.shop-card .shop-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: var(--accent);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: var(--white);
}

.contact .section-tag {
    background: rgba(251,191,36,0.15);
    color: var(--primary-light);
}

.contact .section-header p {
    color: rgba(255,255,255,0.6);
}

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

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.75);
}

.contact-details li i {
    width: 20px;
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--white);
}

.contact-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.contact-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.12);
}

.form-group textarea {
    resize: vertical;
}

.error-msg {
    color: #fca5a5;
    font-size: 0.8rem;
    position: absolute;
    bottom: -18px;
    left: 4px;
}

.form-tip {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217,119,6,0.35);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ============================================ */
/* ===== 后台管理样式 ===== */
.admin-body {
    background: #f1f5f9;
    min-height: 100vh;
}

.admin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login {
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
}

.login-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-card h3 {
    margin-bottom: 24px;
    color: var(--secondary);
}

.login-card .form-group input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.login-card .form-group input:focus {
    border-color: var(--primary);
}

/* 管理面板 */
.admin-panel {
    width: 100%;
    max-width: 1100px;
    margin: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--secondary);
    color: var(--white);
}

.admin-header-left h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-right .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.admin-header-right .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.admin-body-content {
    padding: 28px;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-section-header h3 {
    font-size: 1.2rem;
    color: var(--secondary);
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ============================================ */
/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stats strong {
        font-size: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(30,41,59,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 80px 32px 32px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        gap: 20px;
        align-items: flex-start;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: rgba(255,255,255,0.85);
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        display: none;
    }

    .process-timeline {
        display: block;
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline-item {
        display: flex;
        gap: 20px;
        margin-bottom: 28px;
        position: relative;
        padding-left: 20px;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 36px;
        bottom: -20px;
        width: 2px;
        background: var(--primary-light);
        opacity: 0.3;
    }

    .timeline-item:last-child::before {
        display: none;
    }

    .tl-dot {
        width: 14px;
        height: 14px;
        background: var(--primary);
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        color: var(--white);
    }

    .tl-text h4 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .tl-text p {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .shops-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .admin-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .admin-header-right {
        flex-direction: column;
        gap: 8px;
    }
}