/* 响应式设计 */

/* 移动端性能优化 */
@media (max-width: 768px) {
    /* 减少动画复杂度以提升性能 */
    .gradient-orb,
    .mystical-orb {
        animation-duration: 8s;
    }
    
    /* 优化星空动画 */
    .stars-container .star {
        animation-duration: 3s;
    }
    
    /* 减少粒子效果 */
    .mystical-particles {
        opacity: 0.3;
    }
    
    /* 优化云朵动画 */
    .cloud {
        animation-duration: 20s;
    }
    
    /* 优化飞鸟动画 */
    .bird {
        animation-duration: 15s;
    }
    
    /* 减少阴影效果以提升性能 */
    .feature-card,
    .prediction-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* 优化背景模糊效果 */
    .top-nav {
        backdrop-filter: blur(10px);
    }
    
    .nav-menu {
        backdrop-filter: blur(15px);
    }
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 优化滚动性能 */
    .hero-section,
    .features-section,
    .prediction-section,
    .download-section {
        will-change: transform;
    }
}
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .download-features {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin: var(--space-8) 0;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        max-width: 400px;
    }
    
    .feature-item {
        padding: var(--space-4);
    }
    
    .feature-item i {
        font-size: var(--font-size-2xl);
    }
    
    .feature-content h4 {
        font-size: var(--font-size-lg);
    }
    
    .feature-content p {
        font-size: var(--font-size-sm);
    }
    
    .download-btn {
        padding: var(--space-4);
        min-height: 120px;
    }
    
    .btn-icon {
        width: 48px;
        height: 48px;
    }
    
    .btn-icon i {
        font-size: var(--font-size-lg);
    }
    
    .btn-title {
        font-size: var(--font-size-base);
    }
    
    .btn-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .development-banner {
        margin-bottom: var(--space-6);
        padding: var(--space-4);
    }
    
    .banner-content span {
        font-size: var(--font-size-base);
    }
    
    .download-stats {
        flex-direction: row;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .stat-item {
        flex: 1;
        padding: var(--space-3);
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    .feature-item {
        padding: var(--space-3);
        gap: var(--space-3);
    }
    
    .feature-content h4 {
        font-size: var(--font-size-base);
    }
    
    .feature-content p {
        font-size: var(--font-size-xs);
    }
    
    .download-buttons {
        gap: var(--space-4);
    }
    
    .download-btn {
        padding: var(--space-4) var(--space-5);
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .btn-icon i {
        font-size: var(--font-size-lg);
    }
    
    .btn-title {
        font-size: var(--font-size-base);
    }
    
    .btn-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .pre-register-btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    .download-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .stat-item {
        padding: var(--space-2);
    }
    
    .stat-number {
        font-size: var(--font-size-lg);
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .feature-item {
        padding: var(--space-2);
        gap: var(--space-2);
    }
    
    .feature-content h4 {
        font-size: var(--font-size-sm);
    }
    
    .feature-content p {
        font-size: 10px;
    }
    
    .download-btn {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .btn-icon i {
        font-size: var(--font-size-base);
    }
    
    .coming-soon-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .btn-title {
        font-size: var(--font-size-sm);
    }
    
    .btn-subtitle {
        font-size: 10px;
    }
    
    .btn-status {
        font-size: 8px;
    }
    
    .pre-register-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    .pre-register-note {
        font-size: 10px;
    }
    
    .download-section {
        padding: var(--space-20) 0;
        min-height: auto;
    }
    
    .download-content {
        padding: 0 var(--space-4);
    }
    
    .download-info {
        margin-bottom: var(--space-12);
    }
    
    .download-features {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin-bottom: var(--space-12);
    }
    
    .feature-item {
        padding: var(--space-8);
    }
    
    .feature-item i {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-4);
    }
    
    .feature-content h4 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-3);
    }
    
    .feature-content p {
        font-size: var(--font-size-sm);
    }
    
    .download-buttons {
        flex-direction: column;
        gap: var(--space-4);
        max-width: 400px;
    }
    
    .download-btn {
        padding: var(--space-6);
        min-height: 140px;
        min-width: auto;
        gap: var(--space-4);
    }
    
    .btn-icon {
        width: 60px;
        height: 60px;
    }
    
    .btn-icon i {
        font-size: var(--font-size-xl);
    }
    
    .btn-title {
        font-size: var(--font-size-base);
    }
    
    .btn-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .btn-status {
        font-size: var(--font-size-xs);
    }
    
    .coming-soon-badge {
        font-size: var(--font-size-xs);
        padding: 2px 6px;
    }
    
    .stat-item {
        padding: var(--space-4);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .download-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .download-buttons {
        gap: var(--space-6);
        max-width: 700px;
    }
    
    .download-btn {
        min-width: 200px;
        min-height: 180px;
        padding: var(--space-8);
    }
    
    .btn-icon {
        width: 70px;
        height: 70px;
    }
    
    .btn-icon i {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg, rgba(255, 255, 255, 0.98));
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--nav-border, var(--card-border));
        box-shadow: var(--nav-shadow, var(--shadow-lg));
        flex-direction: column;
        padding: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: var(--space-4) var(--space-6);
        margin: var(--space-1) 0;
        border-radius: var(--radius-lg);
        text-align: center;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--primary-color);
        color: var(--text-white);
        transform: translateX(4px);
    }
    
    .nav-menu .nav-link.active::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
        padding: var(--space-4);
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-3);
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    .title-main {
        font-size: var(--font-size-4xl);
        line-height: 1.1;
        margin-bottom: var(--space-4);
    }
    
    .title-sub {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        line-height: 1.6;
        margin-bottom: var(--space-6);
        padding: 0 var(--space-2);
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 10px;
        border-radius: 18px;
        margin: 0 auto;
        order: -1; /* 在移动端将手机模拟器放在顶部 */
    }
    
    .phone-screen {
        border-radius: 14px;
    }
    
    .app-preview {
        padding: var(--space-2);
    }
    
    /* 移动端星空效果优化 */
    .moon {
        width: 60px;
        height: 60px;
        top: 15%;
        right: 10%;
    }
    
    .planet-1 {
        width: 8px;
        height: 8px;
    }
    
    .planet-2 {
        width: 6px;
        height: 6px;
    }
    
    .planet-3 {
        width: 4px;
        height: 4px;
    }
    
    /* 移动端白天天空效果优化 */
    .sun {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 15%;
    }
    
    .cloud {
        opacity: 0.6;
    }
    
    .bird {
        opacity: 0.7;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端黄历适配 */
    .calendar-main {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-4);
        min-height: auto;
    }
    
    .lunar-date-section {
        flex: none;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding: var(--space-3);
        margin-bottom: var(--space-3);
    }
    
    .lunar-day {
        font-size: 2.5rem;
    }
    
    .ganzhi-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
    }
    
    .ganzhi-info > div {
        flex: 1;
        min-width: 80px;
        text-align: center;
        font-size: var(--font-size-xs);
    }
    
    .deity-direction {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .almanac-details {
        gap: var(--space-3);
    }
    
    /* 移动端字体优化 */
    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        line-height: 1.4;
    }
    
    /* 移动端表单优化 */
    .prediction-card {
        padding: var(--space-4);
        margin: var(--space-2);
        border-radius: var(--radius-xl);
    }
    
    .form-progress {
        padding: var(--space-3);
        margin-bottom: var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .progress-steps {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .step {
        flex-direction: row;
        text-align: left;
        width: 100%;
        padding: var(--space-2);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.5);
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-sm);
        margin-right: var(--space-3);
        flex-shrink: 0;
    }
    
    .step-label {
        font-size: var(--font-size-sm);
        flex: 1;
        font-weight: 500;
    }
    
    .form-group {
        margin-bottom: var(--space-5);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-4) var(--space-5);
        font-size: var(--font-size-base);
        border-radius: var(--radius-lg);
        min-height: 48px; /* 增加触摸目标大小 */
    }
    
    .form-group.input-with-icon input,
    .form-group.input-with-icon select,
    .form-group.input-with-icon textarea {
        padding-left: 3rem;
    }
    
    .form-group.input-with-icon .input-icon {
        left: 1rem;
        font-size: var(--font-size-lg);
        top: 50%;
        transform: translateY(-50%);
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-group label {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-2);
        font-weight: 600;
    }
    
    .btn-large {
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-lg);
        width: 100%;
        min-height: 56px; /* 增加触摸目标大小 */
        border-radius: var(--radius-lg);
    }
    
    .form-disclaimer {
        padding: var(--space-3);
        font-size: var(--font-size-sm);
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
        border-radius: var(--radius-md);
    }
    
    /* 移动端预测类型选择优化 */
    .prediction-type-selection {
        margin-bottom: var(--space-6);
    }
    
    .type-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .type-option {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        min-height: 60px;
        font-size: var(--font-size-base);
    }
    
    /* 移动端时间选择优化 */
    .time-selection {
        margin-bottom: var(--space-6);
    }
    
    .calendar-picker-container {
        margin-top: var(--space-4);
    }
    
    /* 移动端性别选择优化 */
    .gender-selection {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }
    
    .gender-option {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--font-size-base);
        font-weight: 500;
    }
    
    /* 移动端问题类型触发器优化 */
    .question-type-trigger {
        padding: var(--space-4) var(--space-5);
        min-height: 48px;
        font-size: var(--font-size-base);
        border-radius: var(--radius-lg);
    }
    
    /* 移动端模态框优化 */
    .prediction-modal .modal-content {
        margin: var(--space-2);
        max-height: 95vh;
        border-radius: 16px;
        width: calc(100% - var(--space-4));
    }
    
    .prediction-modal .modal-header {
        padding: var(--space-4) var(--space-4) 0;
        border-radius: 16px 16px 0 0;
    }
    
    .prediction-modal .modal-header h3 {
        font-size: var(--font-size-lg);
    }
    
    .prediction-modal .modal-body {
        padding: var(--space-4);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .prediction-modal .modal-footer {
        padding: var(--space-4);
        border-radius: 0 0 16px 16px;
    }
    
    .prediction-modal .crystal-ball {
        width: 80px;
        height: 80px;
    }
    
    .prediction-modal .user-question,
    .prediction-modal .result-content,
    .prediction-modal .result-advice {
        padding: var(--space-4);
        margin: var(--space-3) 0;
    }
    
    .prediction-modal .question-header,
    .prediction-modal .content-header,
    .prediction-modal .advice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .prediction-modal .disclaimer {
        padding: var(--space-3);
        font-size: var(--font-size-xs);
        flex-direction: column;
        text-align: center;
    }
    
    /* 移动端问题类型选择模态框优化 */
    .question-type-modal .modal-container {
        margin: var(--space-2);
        max-height: 90vh;
        width: calc(100% - var(--space-4));
        border-radius: 16px;
    }
    
    .question-type-modal .modal-header {
        padding: var(--space-4);
        border-radius: 16px 16px 0 0;
    }
    
    .question-type-modal .modal-content {
        padding: var(--space-4);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .question-type-modal .search-container {
        margin-bottom: var(--space-4);
    }
    
    .question-type-modal .search-input {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-base);
        min-height: 48px;
    }
    
    .question-type-modal .question-categories {
        gap: var(--space-4);
    }
    
    .question-type-modal .question-category {
        margin-bottom: var(--space-4);
    }
    
    .question-type-modal .category-header {
        padding: var(--space-3);
        font-size: var(--font-size-base);
        margin-bottom: var(--space-2);
    }
    
    .question-type-modal .category-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .question-type-modal .question-option {
        padding: var(--space-3) var(--space-4);
        min-height: 48px;
        font-size: var(--font-size-sm);
        border-radius: var(--radius-md);
    }
    
    /* 移动端微信登录模态框优化 */
    .wechat-login-modal .wechat-login-dialog {
        margin: var(--space-4);
        max-width: calc(100% - var(--space-8));
        border-radius: 16px;
    }
    
    .wechat-login-modal .wechat-login-title {
        font-size: var(--font-size-lg);
        padding: var(--space-4);
    }
    
    .wechat-login-modal .wechat-login-step {
        padding: var(--space-3);
        margin-bottom: var(--space-4);
    }
    
    .wechat-login-modal .wechat-login-step-text {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-3);
    }
    
    .wechat-login-modal .wechat-login-qr {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: var(--space-4) auto;
        width: 180px;
        height: 180px;
        border: 2px solid #e5e7eb;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .wechat-login-modal .wechat-login-qr img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .wechat-login-modal .wechat-login-code-inputs {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-2);
        max-width: 300px;
        margin: 0 auto;
    }
    
    .wechat-login-modal .wechat-login-code {
        width: 100%;
        height: 48px;
        text-align: center;
        font-size: var(--font-size-lg);
        font-weight: 600;
        border-radius: var(--radius-md);
        border: 2px solid var(--card-border);
    }
    
    .wechat-login-modal .wechat-login-submit {
        width: 100%;
        padding: var(--space-4);
        font-size: var(--font-size-base);
        min-height: 56px;
        margin-top: var(--space-4);
    }
    
    /* 移动端黄历日期选择器 */
    .calendar-date-picker {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-picker {
        width: 100%;
    }
    
    .lunar-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .fortune-item {
        min-height: 70px;
        padding: var(--space-3);
    }
    
    .fortune-content {
        padding-left: 20px;
        min-height: 35px;
    }
    
    .five-elements {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        min-height: 120px;
    }
    
    .element-item {
        padding: var(--space-3);
        min-height: 50px;
    }
    
    .lunar-details {
        min-height: 100px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--space-3);
    }
    
    .section-container {
        padding: 0 var(--space-3);
    }
    
    .hero-container {
        padding: 0 var(--space-3);
    }
    
    /* 移动端间距优化 */
    .hero-section {
        padding: var(--space-12) 0;
        min-height: 100vh;
    }
    
    .features-section {
        padding: var(--space-12) 0;
    }
    
    .prediction-section {
        padding: var(--space-12) 0;
    }
    
    .download-section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .features-grid {
        gap: var(--space-4);
    }
    
    .title-main {
        font-size: var(--font-size-3xl);
        line-height: 1.1;
    }
    
    .title-sub {
        font-size: var(--font-size-xl);
        line-height: 1.2;
    }
    
    .btn {
        padding: var(--space-4) var(--space-5);
        font-size: var(--font-size-base);
        min-height: 48px;
    }
    
    /* 小屏幕Hero区域优化 */
    .hero-container {
        gap: var(--space-6);
        padding: var(--space-2);
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 8px;
        border-radius: 16px;
    }
    
    .phone-screen {
        border-radius: 12px;
    }
    
    .app-preview {
        padding: var(--space-1);
    }
    
    /* 小屏幕表单优化 */
    .prediction-card {
        padding: var(--space-3);
        margin: var(--space-1);
    }
    
    .form-group {
        margin-bottom: var(--space-4);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
        min-height: 44px;
    }
    
    .btn-large {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-base);
        min-height: 52px;
    }
    
    /* 小屏幕模态框优化 */
    .question-type-modal .modal-container,
    .wechat-login-modal .wechat-login-dialog {
        margin: var(--space-1);
        width: calc(100% - var(--space-2));
    }
    
    .wechat-login-modal .wechat-login-code-inputs {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-1);
        max-width: 240px;
    }
    
    .wechat-login-modal .wechat-login-code {
        height: 44px;
        font-size: var(--font-size-base);
    }
    
    .wechat-login-modal .wechat-login-qr {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: var(--space-3) auto;
        width: 160px;
        height: 160px;
        border: 2px solid #e5e7eb;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .wechat-login-modal .wechat-login-qr img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    /* 小屏幕字体优化 */
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        line-height: 1.4;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
        line-height: 1.3;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 10px;
        border-radius: 18px;
    }
    
    .phone-screen {
        border-radius: 14px;
    }
    
    .app-preview {
        padding: var(--space-2);
    }
    
    /* 小屏幕星空效果优化 */
    .moon {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 15%;
    }
    
    .planet-1 {
        width: 8px;
        height: 8px;
    }
    
    .planet-2 {
        width: 6px;
        height: 6px;
    }
    
    .planet-3 {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 360px) {
    .moon {
        width: 50px;
        height: 50px;
    }
    
    .wechat-login-modal .wechat-login-qr {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: var(--space-2) auto;
        width: 140px;
        height: 140px;
        border: 2px solid #e5e7eb;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .wechat-login-modal .wechat-login-qr img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    /* 最小屏幕间距优化 */
    .hero-section {
        padding: var(--space-12) 0;
    }
    
    .features-section {
        padding: var(--space-12) 0;
    }
    
    .prediction-section {
        padding: var(--space-12) 0;
    }
    
    .download-section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .features-grid {
        gap: var(--space-4);
    }
    
    .nav-container {
        padding: 0 var(--space-2);
    }
    
    .section-container {
        padding: 0 var(--space-2);
    }
    
    .hero-container {
        padding: 0 var(--space-2);
    }
    
    .title-main {
        font-size: var(--font-size-2xl);
        line-height: 1.0;
    }
    
    /* 最小屏幕字体优化 */
    .hero-title {
        font-size: var(--font-size-xl);
        line-height: 1.0;
    }
    
    .hero-description {
        font-size: var(--font-size-xs);
        line-height: 1.3;
    }
    
    .section-title {
        font-size: var(--font-size-lg);
        line-height: 1.1;
    }
    
    .section-subtitle {
        font-size: var(--font-size-xs);
        line-height: 1.2;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 8px;
        border-radius: 16px;
    }
    
    .phone-screen {
        border-radius: 12px;
    }
    
    .app-preview {
        padding: var(--space-1);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加触摸目标大小 */
    .btn,
    .nav-link,
    .mobile-menu-toggle,
    .type-option,
    .gender-option,
    .question-option {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 优化触摸反馈 */
    .btn:active,
    .nav-link:active,
    .type-option:active,
    .gender-option:active,
    .question-option:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 移除hover效果，避免触摸设备上的问题 */
    .btn:hover,
    .nav-link:hover,
    .type-option:hover,
    .gender-option:hover,
    .question-option:hover {
        transform: none;
    }
    
    /* 优化表单输入 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 优化滚动体验 */
    .modal-content,
    .question-type-modal .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
        align-items: center;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        order: 1;
    }
    
    .hero-content {
        order: 0;
        text-align: left;
    }
    
    .hero-actions {
        flex-direction: row;
        max-width: none;
        margin: 0;
    }
    
    .hero-actions .btn {
        width: auto;
        flex: 1;
    }
}
