﻿/* night-home.css — 首页正文 · 蒂芙尼蓝浅色主题 */

h1, h2, h3, h4, h5 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    margin-bottom: 12px;
    color: var(--text-heading);
}

h2 {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    margin-bottom: 10px;
    color: var(--text-heading);
}

h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-heading);
}

h4, h5 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-heading);
}

p,
li,
.games-text,
.games-intro,
.games-category,
.section-subtitle,
.card-content p,
.content-card p,
.faq-answer p,
.footer-intro p {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.72;
}

p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-white { color: var(--text-heading) !important; }
.py-2 { padding-block: 8px; }
.py-5 { padding-block: 16px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.me-2 { margin-right: 10px; }
.ms-3 { margin-left: 10px; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.img-fluid { width: 100%; height: auto; max-width: 100%; }
.rounded-5 { border-radius: 12px; }

.hero-section {
    padding: 14px 0 20px;
    background: var(--surface-hero);
    border-bottom: 1px solid var(--line-soft);
}

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.hero-stack__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.hero-stack__text .btn {
    align-self: center;
    width: 100%;
    max-width: 320px;
}

.hero-stack__media { padding-inline: 8px; }

.hero-stack__media a {
    display: block;
    width: 100%;
    max-width: 512px;
    margin-inline: auto;
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line-soft);
    background: var(--surface-card-inner);
    box-sizing: border-box;
}

.hero-stack__media img {
    width: 100%;
    max-width: 512px;
    height: auto;
    margin-inline: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
}

.bg-primary {
    background: var(--surface-primary);
    border-block: 1px solid var(--accent-border);
}

.bg-primary h2 { color: var(--text-heading); }

.bg-gradient-dark {
    background: var(--surface-hero);
    border-block: 1px solid var(--line-soft);
}

.content-section {
    padding-block: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.section-title { text-align: center; margin-bottom: 6px; }
.section-subtitle { text-align: center; margin-bottom: 14px; }

.row.cards-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.cards-row.cards-4-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-row .col-12 { flex: unset; min-width: 0; }

.content-card {
    height: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--surface-card);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
}

.card-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-type:not(.card-horizontal) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
}

.card-type:not(.card-horizontal) > .type-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.card-type:not(.card-horizontal) > h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 8px;
}

.card-type:not(.card-horizontal) > p,
.card-type:not(.card-horizontal) > a {
    flex: 1 1 100%;
}

.card-icon, .type-icon, .security-icon, .support-icon, .tech-icon {
    flex-shrink: 0;
    font-size: 1.6rem;
    line-height: 1;
}

.card-content h3, .card-game-info h3, .card-bonus h3,
.card-type h3, .card-support h3, .card-security h3, .card-tech h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.step-number, .stat-number {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--btn-text);
    font-size: 15px;
    font-weight: 700;
}

.stat-number {
    min-width: 64px;
    padding: 0 8px;
    border-radius: 8px;
}

.bonus-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.bonus-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.card-game-redesign {
    padding: 0;
    overflow: visible;
    height: auto;
}

.card-image-full {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.card-image-full img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
    background: var(--surface-card-inner);
}

.card-game-info { padding: 12px; }
.game-description { font-size: 15px; }

.text-link {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.title-link { color: var(--accent); }

.rtp-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
}

.rtp-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--surface-card);
}

.rtp-comparison-table th,
.rtp-comparison-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    color: var(--text-soft);
}

.rtp-comparison-table th {
    background: var(--accent-soft);
    color: var(--text-heading);
    font-weight: 700;
}

.rtp-value { color: var(--accent); font-weight: 700; }

.app-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.app-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-card-inner);
    border: 1px solid var(--line-soft);
    font-size: 15px;
    color: var(--text-soft);
}

.feature-check { color: var(--color-green); font-weight: 700; }
.app-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.app-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.app-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-inline: auto;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
    background: var(--surface-card-inner);
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface-card);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--surface-elevated);
}

.faq-question h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
}

.faq-toggle { color: var(--accent); font-size: 18px; font-weight: 700; }
.faq-answer { display: none; padding: 12px 14px; }
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); }

.card-tech-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--btn-text);
    cursor: pointer;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-lg { min-height: 48px; padding: 12px 24px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 15px; }

.btn-success {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    box-shadow: var(--shadow-gold);
    color: var(--btn-text-dark);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    color: var(--btn-text);
}

.final-cta-section {
    background: var(--surface-primary) !important;
}

.site-footer {
    padding: 24px var(--nav-pad-x) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--surface-footer);
    border-top: 1px solid var(--line-soft);
}

.site-footer__intro {
    max-width: 36em;
    margin: 0 auto 16px;
    text-align: center;
}

.site-footer__intro h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.site-footer__intro p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.72;
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 12px;
    font-size: 15px;
}

.site-footer__meta a {
    color: var(--accent);
    font-weight: 500;
}

.site-footer__copy {
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}

section.container#login { display: none; }

@media (max-width: 420px) {
    .cards-row, .cards-row.cards-4-col, .app-features {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 421px) {
    .card-tech-horizontal { grid-column: 1 / -1; }
}
