/* styles.css */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px 20px;
    overflow-x: hidden;
    color: #fff;
    overscroll-behavior: none;
}

/* 顶部栏样式重构 */
.top-bar {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    z-index: 20;
    margin-bottom: 20px;
    height: 50px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.logo-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 顶部栏获取App按钮 */
.btn-get-app {
    background: linear-gradient(90deg, #fd79a8, #e84393);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(253, 121, 168, 0.4);
}

.btn-get-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(253, 121, 168, 0.5);
}

.btn-get-app:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 原来的下载按钮样式保留，用于页面底部 */
.btn-import {
    background: none;
    border: none;
    padding: 0;
    background: linear-gradient(90deg, #00bcd4, #4cc9f0);
    color: #0f0c29;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 80%;
    max-width: 280px;
}

.btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 188, 212, 0.5);
}

.btn-import:active {
    transform: scale(0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.ambient-light {
    position: fixed;
    width: 80vmax;
    height: 80vmax;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: -20%;
    left: -20%;
    animation: float 15s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.ambient-light:nth-child(2) {
    background: radial-gradient(circle, rgba(253, 121, 168, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: auto;
    bottom: -20%;
    left: auto;
    right: -20%;
    animation: float 18s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.05);
    }
}

/* 新增的宣传页样式 */
.header-section {
    max-width: 380px;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    z-index: 10;
}

.app-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #6c5ce7, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.promo-container {
    max-width: 1200px;
    width: 100%;
    z-index: 10;
    padding: 0 20px;
}

.promo-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #a29bfe;
}

.promo-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.promo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 图片容器 */
.image-container {
    width: 100%;
    aspect-ratio: 3/2;
    max-height: 260px;
    overflow: hidden;
    position: relative;
}

.promo-img {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background-color: rgba(0, 0, 0, 0);
    margin: 10px auto;
    display: block;
}

.promo-card:hover .promo-img {
    transform: scale(1.05);
}

.promo-info {
    padding: 20px;
}

.promo-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.promo-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    text-align: center;
}

.features {
    max-width: 380px;
    width: 100%;
    margin-bottom: 25px;
    z-index: 10;
}

.features h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #a29bfe;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.feature-tag {
    font-size: 13px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #a29bfe;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.download-section {
    max-width: 380px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    z-index: 10;
}

.footer {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding-bottom: 10px;
    z-index: 10;
}

.social-section {
    max-width: 380px;
    width: 100%;
    margin: 0 auto 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    color: #fff;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.social-icon:hover {
    color: #a29bfe;
}

/* 响应式调整 - 手机端 */
@media (max-width: 767px) {
    body {
        padding: 12px 15px 15px;
    }
    
    .top-bar {
        padding: 6px 0;
        margin-bottom: 15px;
        height: 45px;
        max-width: 100%;
    }
    
    .btn-get-app {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .app-subtitle {
        font-size: 14px;
    }
    
    .image-container {
        aspect-ratio: 4/3;
        max-height: 220px;
    }
    
    .promo-info {
        padding: 16px;
    }
    
    .promo-info h3 {
        font-size: 16px;
    }
    
    .promo-info p {
        font-size: 13px;
    }
}

/* 平板端 */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-bar {
        max-width: 600px;
    }
    
    .btn-get-app {
        font-size: 14px;
        padding: 8px 18px;
    }
    
    .image-container {
        aspect-ratio: 16/9;
        max-height: 240px;
    }
    
    .promo-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .promo-container {
        max-width: 800px;
    }
    
    .header-section {
        max-width: 600px;
    }
    
    .features {
        max-width: 600px;
    }
    
    .download-section {
        max-width: 600px;
    }
}

/* 电脑端 - 横向三张 */
@media (min-width: 1024px) {
    /* 顶部栏适应屏幕宽度 */
    .top-bar {
        max-width: 1200px;
        width: 100%;
        padding: 15px 20px;
        margin-bottom: 30px;
        height: 60px;
        justify-content: space-between;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .app-name {
        font-size: 24px;
    }
    
    .btn-get-app {
        font-size: 16px;
        padding: 10px 24px;
        border-radius: 24px;
    }
    
    /* 宣传图片横向排列 */
    .promo-images {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .promo-card {
        flex: 0 0 calc(33.333% - 20px);
        max-width: 350px;
    }
    
    .image-container {
        aspect-ratio: 16/9;
        max-height: 200px;
    }
    
    /* 其他内容区域也适应屏幕宽度 */
    .header-section {
        max-width: 800px;
    }
    
    .app-title {
        font-size: 36px;
    }
    
    .app-subtitle {
        font-size: 20px;
        max-width: 700px;
        margin: 0 auto 30px;
    }
    
    .promo-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .promo-info h3 {
        font-size: 20px;
    }
    
    .promo-info p {
        font-size: 16px;
    }
    
    .features {
        max-width: 800px;
    }
    
    .feature-tag {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .download-section {
        max-width: 800px;
        margin-bottom: 30px;
    }
    
    .btn-import {
        font-size: 18px;
        padding: 16px 50px;
        max-width: 320px;
    }
    
    .footer {
        font-size: 14px;
        margin-top: 30px;
    }
}

/* 超大屏幕 */
@media (min-width: 1400px) {
    .top-bar {
        max-width: 1400px;
    }
    
    .btn-get-app {
        font-size: 17px;
        padding: 12px 28px;
    }
    
    .promo-container {
        max-width: 1400px;
    }
    
    .header-section {
        max-width: 1000px;
    }
    
    .app-title {
        font-size: 42px;
    }
    
    .app-subtitle {
        font-size: 22px;
        max-width: 900px;
    }
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Mobile adjustments for modal */
@media (max-width: 767px) {
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}