/* ============================================
   寰宇·悦 | 酒店投资加盟  样式表
   纯静态 HTML + CSS + JS
   ============================================ */

/* ---------- 全局变量 ---------- */
:root {
    --primary: #1a3a5c;
    --primary-light: #2d6a9f;
    --accent: #d4a853;
    --accent-light: #e8c97a;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --radius: 16px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Section 通用 ---------- */
.section {
    padding: 80px 0;
}
.section.bg-light {
    background: var(--bg-light);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 106, 159, 0.3);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
/* 按钮点击效果 (JS 也会处理) */
.btn:active {
    transform: scale(0.96);
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    background: rgba(212, 168, 83, 0.15);
    color: #a07d3a;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.3s;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e9eef3 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.hero-text {
    flex: 1 1 500px;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 20px;
    letter-spacing: -1px;
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-stats div {
    display: flex;
    flex-direction: column;
}
.hero-stats strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.hero-stats span {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.hero-visual {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
}
/* 模拟建筑图形 */
.mock-building {
    width: 260px;
    position: relative;
}
.building-body {
    background: linear-gradient(145deg, #2c3e50, #1a2a3a);
    border-radius: 18px 18px 4px 4px;
    padding: 24px 16px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.window-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    justify-content: center;
}
.window-row span {
    display: block;
    width: 32px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.window-row span::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(212,168,83,0.3), transparent);
    border-radius: 3px;
}
.building-door {
    width: 50px;
    height: 60px;
    background: var(--accent);
    margin: -20px auto 0;
    border-radius: 10px 10px 0 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 -6px 12px rgba(0,0,0,0.1);
}
.ground-line {
    width: 100%;
    height: 6px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: -6px;
    position: relative;
    z-index: 1;
}
.sun-icon {
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Cards Grid ---------- */
.cards-grid {
    display: grid;
    gap: 28px;
}
.four-cols { grid-template-columns: repeat(4, 1fr); }
.three-cols { grid-template-columns: repeat(3, 1fr); }

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.02);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.adv-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.adv-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Brand Card */
.brand-card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
}
.brand-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,0.7);
}
.brand-info {
    padding: 24px;
}
.brand-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.brand-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.brand-info ul {
    margin-bottom: 18px;
}
.brand-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.brand-info li i {
    color: var(--accent);
}

/* ---------- Process Steps ---------- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    padding: 24px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}
.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}
.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    min-width: 50px;
}
.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: 0.2s;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}
.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-light);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ---------- Contact ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-form {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.95rem;
    background: #fafbfc;
    transition: 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(42, 106, 159, 0.12);
}
.contact-form textarea {
    resize: vertical;
    margin-bottom: 16px;
}
.form-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}
.contact-info {
    background: var(--primary);
    color: #fff;
    padding: 32px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
}
.info-item i {
    width: 24px;
    text-align: center;
    color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
    background: #0f1a2b;
    color: #cbd5e1;
    padding: 48px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}
.footer-brand h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand h3 i { color: var(--accent); }
.footer-links h4, .footer-social h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
    transition: 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.social-icons {
    display: flex;
    gap: 18px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.social-icons a {
    color: #94a3b8;
    transition: 0.2s;
}
.social-icons a:hover { color: var(--accent); }
.footer-copy {
    font-size: 0.85rem;
    color: #64748b;
}

/* ---------- Back to Top ---------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板 ≤ 992px */
@media (max-width: 992px) {
    .four-cols { grid-template-columns: repeat(2, 1fr); }
    .three-cols { grid-template-columns: repeat(2, 1fr); }
    .hero-content { flex-direction: column; }
    .hero-text h1 { font-size: 2.4rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

/* 手机 ≤ 768px */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .hamburger { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 1.9rem; }
    .hero-stats { gap: 20px; }
    .hero-stats strong { font-size: 1.4rem; }
    .four-cols, .three-cols { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .form-row { flex-direction: column; }
    .contact-form { padding: 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .step { padding: 18px; gap: 16px; }
    .step-num { font-size: 1.6rem; min-width: 40px; }
    #backToTop { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* 小手机 ≤ 480px */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-text h1 { font-size: 1.6rem; }
    .badge { font-size: 0.75rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .hero-actions { flex-direction: column; }
}