/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-color: #8b7355;
    --secondary-color: #a0927d;
    --accent-color: #c9a87c;
    --bg-color: #fdfbf7;
    --text-color: #3d3d3d;
    --text-light: #6d6d6d;
    --border-color: #e8e4dc;
    --card-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 八卦背景 */
.bagua-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='50' fill='none' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M100 10 A90 90 0 0 1 100 190 A45 45 0 0 1 100 100 A45 45 0 0 0 100 10' fill='%23d4c5b0' opacity='0.15'/%3E%3Ccircle cx='100' cy='55' r='8' fill='%23d4c5b0' opacity='0.15'/%3E%3Ccircle cx='100' cy='145' r='8' fill='none' stroke='%23d4c5b0' stroke-width='2' opacity='0.15'/%3E%3Cline x1='100' y1='10' x2='100' y2='190' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='10' y1='100' x2='190' y2='100' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='27' y1='27' x2='173' y2='173' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='173' y1='27' x2='27' y2='173' stroke='%23d4c5b0' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 顶部导航 */
.top-nav {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content:hover {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* 主视觉区域 */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1), rgba(201, 168, 124, 0.1));
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-badge i {
    margin-right: 8px;
    color: var(--accent-color);
}

.hero-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.4);
}

/* 功能卡片区 */
.features-section {
    padding: 40px 0 50px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--bg-color), white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* 年度报告卡片 */
.report-section {
    padding: 60px 0;
}

.report-card {
    background: linear-gradient(135deg, #f9f6f0, white);
    border-radius: 20px;
    padding: 60px;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--accent-color);
    overflow: hidden;
}

.report-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
}

.report-content {
    max-width: 600px;
}

.report-content h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.report-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.report-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.report-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
}

.report-decoration {
    position: absolute;
    bottom: 30px;
    right: 60px;
    font-size: 120px;
    color: var(--accent-color);
    opacity: 0.2;
}

/* 探索更多可能 - 滚动卡片 */
.explore-section {
    padding: 60px 0;
}

.scroll-cards-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px 0;
}

.scroll-cards-wrapper::before,
.scroll-cards-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.scroll-cards-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.scroll-cards-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.scroll-cards {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: autoScroll 40s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.scroll-cards:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@-webkit-keyframes autoScroll {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
    }
}

.scroll-card {
    min-width: 280px;
    max-width: 280px;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    color: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.scroll-card:hover {
    transform: scale(1.03) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.scroll-card i {
    font-size: 48px;
    margin-bottom: 20px;
}

.scroll-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.scroll-card p {
    font-size: 14px;
    opacity: 0.9;
}

.card-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.card-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-green {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.card-orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 输入页面样式 */
.input-section {
    padding: 60px 0;
    min-height: calc(100vh - 80px);
}

.input-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.input-header {
    text-align: center;
    margin-bottom: 25px;
}

.input-title {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.input-badge {
    display: block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.08), rgba(201, 168, 124, 0.08));
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.input-badge i {
    margin-right: 4px;
    color: var(--accent-color);
    font-size: 10px;
}

.tags-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}

.fortune-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 16px;
}

.form-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-input, .form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

/* 性别选择 */
.gender-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 280px;
    margin: 0 auto;
}

.gender-option {
    cursor: pointer;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-card {
    padding: 10px 8px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gender-card i {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-light);
}

.gender-card span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

.gender-option input[type="radio"]:checked + .gender-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1), white);
}

.gender-option input[type="radio"]:checked + .gender-card i,
.gender-option input[type="radio"]:checked + .gender-card span {
    color: var(--primary-color);
}

/* 时间选择器 */
.datetime-wrapper {
    display: flex;
    gap: 10px;
}

.calendar-btn {
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

.calendar-btn:hover {
    background: var(--accent-color);
}

.calendar-type-toggle {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.toggle-option input[type="radio"] {
    cursor: pointer;
}

/* 地区选择 */
.location-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
}

/* 免责声明 */
.disclaimer {
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #a8a5b2;
    border-top: 1px solid var(--border-color);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-confirm {
    background: var(--primary-color);
    color: white;
}

.modal-btn-confirm:hover {
    background: var(--accent-color);
}

/* 日历样式 */
.calendar-container {
    padding: 10px;
}

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

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px 10px;
}

.calendar-header button:hover {
    background: var(--bg-color);
    border-radius: 5px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--text-light);
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.calendar-day:hover {
    background: var(--bg-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
}

.calendar-day.other-month {
    color: #ccc;
}

.time-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.time-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.time-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

/* 底部 */
.footer {
    background: white;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer p {
    color: var(--text-light);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bagua-bg {
        width: 500px;
        height: 500px;
        opacity: 0.25;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-section {
        min-height: 45vh;
        padding: 25px 15px 15px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 14px 35px;
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .features-section {
        padding: 30px 0 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .feature-card h3 {
        font-size: 15px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .report-section {
        padding: 40px 0;
    }

    .report-card {
        padding: 30px 20px;
    }

    .report-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-bottom: 20px;
        padding: 10px 20px;
        font-size: 18px;
    }

    .report-content {
        max-width: 100%;
    }

    .report-content h2 {
        font-size: 26px;
    }

    .report-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .report-btn {
        padding: 12px 30px;
        font-size: 15px;
    }

    .report-decoration {
        display: none;
    }

    .explore-section {
        padding: 40px 0;
    }

    .scroll-cards-wrapper {
        margin: 0 -15px;
    }

    .scroll-cards-wrapper::before,
    .scroll-cards-wrapper::after {
        width: 40px;
    }

    .scroll-card {
        min-width: 240px;
        max-width: 240px;
        padding: 30px 20px;
    }

    .scroll-card i {
        font-size: 36px;
    }

    .scroll-card h3 {
        font-size: 18px;
    }

    .scroll-card p {
        font-size: 13px;
    }

    .input-section {
        padding: 30px 0;
    }

    .input-card {
        padding: 25px 15px;
        margin: 0 10px;
    }

    .input-title {
        font-size: 22px;
    }

    .tags-container {
        gap: 5px;
        margin-bottom: 20px;
    }

    .tag {
        padding: 3px 8px;
        font-size: 10px;
    }

    .input-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input, .form-select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .gender-selector {
        gap: 6px;
    }

    .gender-card {
        padding: 8px 6px;
    }

    .gender-card i {
        font-size: 18px;
    }

    .gender-card span {
        font-size: 12px;
    }

    .calendar-btn {
        padding: 12px 16px;
        font-size: 16px;
    }

    .location-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }

    .footer {
        padding: 20px 0;
        margin-top: 40px;
    }

    .footer p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 40vh;
        padding: 20px 15px 10px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }

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

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        padding: 20px;
    }

    .feature-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .feature-card h3 {
        margin-bottom: 5px;
    }

    .report-content h2 {
        font-size: 22px;
    }

    .scroll-card {
        min-width: 200px;
        max-width: 200px;
        padding: 25px 15px;
    }

    .scroll-card i {
        font-size: 32px;
    }

    .scroll-card h3 {
        font-size: 16px;
    }

    .input-title {
        font-size: 25px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }

    .scroll-card:hover {
        transform: none;
    }

    .hero-btn:hover {
        transform: none;
    }

    .submit-btn:hover {
        transform: none;
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    .scroll-card:active {
        transform: scale(0.98);
    }
}

/* 安全区域适配 (iPhone X及以上) */
@supports (padding: max(0px)) {
    .top-nav {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
