/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #C084FC;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --border-color: #e5e5e5;
    --gradient-1: linear-gradient(135deg, #FFE5F1 0%, #E8D5FF 100%);
    --gradient-2: linear-gradient(135deg, #FFE5E5 0%, #FFD5D5 50%, #E8D5FF 100%);
    --gradient-3: linear-gradient(135deg, #E8F5FF 0%, #E8D5FF 100%);
    --gradient-4: linear-gradient(135deg, #FFF5E8 0%, #FFE5F1 100%);
    --gradient-5: linear-gradient(135deg, #F0F8FF 0%, #E8F5FF 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero区域 */
.hero {
    padding: 120px 0 80px;
    background: #F0F5F7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-download,
.feature-download {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-app-store,
.btn-android {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    color: white;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    height: auto;
    border: none;
}

.btn-app-store:hover,
.btn-android:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-app-store svg {
    width: 20px;
    height: 24px;
}

.appstore-icon,
.android-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
    width: 108px;
    height: 40px;
}

/* iPhone手机模型 */
.hero-phone,
.feature-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen-dark {
    background: #1a1a1a;
    color: white;
}

.phone-screen-purple {
    background: linear-gradient(135deg, #E8D5FF 0%, #C084FC 100%);
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 32px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    font-size: 14px;
    font-weight: 600;
}

.phone-status-icons {
    display: flex;
    gap: 4px;
    font-size: 12px;
}

.phone-content {
    padding: 40px 24px;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-content-dark {
    color: white;
}

.phone-content-purple {
    color: white;
}

.phone-greeting {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.phone-time-large {
    font-size: 64px;
    font-weight: 200;
    margin-bottom: 40px;
    color: var(--text-dark);
    letter-spacing: -2px;
}

.phone-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.phone-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.phone-feature-label {
    font-size: 12px;
    color: var(--text-light);
}

.phone-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.phone-timer {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 32px;
    text-align: center;
}

.phone-play-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    cursor: pointer;
    transition: transform 0.3s;
}

.phone-play-button:hover {
    transform: scale(1.05);
}

.play-icon {
    font-size: 32px;
    color: white;
    margin-left: 4px;
}

.phone-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.phone-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-action-icon {
    font-size: 32px;
}

.phone-action-label {
    font-size: 12px;
    opacity: 0.8;
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.phone-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 16px;
}

.phone-grid-icon {
    font-size: 32px;
}

.phone-grid-label {
    font-size: 14px;
    color: var(--text-light);
}

.phone-cards {
    display: flex;
    gap: 12px;
    width: 100%;
}

.phone-card {
    flex: 1;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 16px;
    text-align: center;
}

.phone-card-title {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.phone-card-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
}

.phone-timer-large {
    font-size: 72px;
    font-weight: 200;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -3px;
}

.phone-progress-circle {
    margin-bottom: 40px;
}

.progress-ring {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 70;
    transition: stroke-dashoffset 0.3s;
}

.progress-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
}

.phone-timer-actions {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.phone-timer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-timer-icon {
    font-size: 32px;
}

.phone-timer-label {
    font-size: 14px;
    opacity: 0.9;
}

.phone-scenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.phone-scene-item {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-scene-image {
    font-size: 40px;
}

.phone-scene-label {
    font-size: 14px;
    color: var(--text-light);
}

.phone-date {
    font-size: 80px;
    font-weight: 200;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -4px;
}

.phone-date-full {
    font-size: 16px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.phone-quote {
    text-align: center;
    margin-bottom: 32px;
}

.phone-quote-number {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 16px;
    opacity: 0.3;
}

.phone-quote-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 300;
}

.phone-quote-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.quote-nav-btn,
.quote-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.quote-share-btn {
    width: auto;
    padding: 0 20px;
    border-radius: 20px;
    font-size: 14px;
}

.quote-nav-btn:hover,
.quote-share-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 功能区域 */
.feature-section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.feature-section-0 {
    background: var(--gradient-1);
}

.feature-section-1 {
    background: var(--gradient-2);
}

.feature-section-2 {
    background: var(--bg-white);
}

.feature-section-3 {
    background: var(--gradient-3);
}

.feature-section-4 {
    background: var(--bg-white);
}

.feature-section-5 {
    background: var(--gradient-5);
}

.feature-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-content {
    z-index: 2;
}

.feature-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.feature-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 400;
}

.feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 32px;
    margin-top: 24px;
    font-weight: 500;
}

.feature-download {
    margin-top: 32px;
}

/* 用户评价 */
.testimonials {
    padding: 120px 0;
    background: var(--gradient-5);
    text-align: center;
}

.testimonials-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    justify-items: stretch;
    align-items: start;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 32px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 400;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.stars {
    color: #FFD700;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}

.rating-score {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: block;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
}

.author-status {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
}

/* 评价卡片特殊布局：上排3个，下排2个居中 */
.testimonials-grid .testimonial-card {
    width: 100%;
    min-width: 0;
}

.testimonials-grid .testimonial-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.testimonials-grid .testimonial-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.testimonials-grid .testimonial-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.testimonials-grid .testimonial-card:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* 页脚 */
.footer {
    background: var(--bg-white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

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

/* 响应式设计 - 平板端 */
@media (max-width: 1024px) and (min-width: 769px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .testimonials-grid .testimonial-card:nth-child(1),
    .testimonials-grid .testimonial-card:nth-child(2),
    .testimonials-grid .testimonial-card:nth-child(3),
    .testimonials-grid .testimonial-card:nth-child(4),
    .testimonials-grid .testimonial-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero .container,
    .feature-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 36px;
    }

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

    .feature-title {
        font-size: 32px;
    }

    .feature-description {
        font-size: 16px;
    }

    .feature-section {
        padding: 80px 0;
        min-height: auto;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
    }

    .phone-time-large {
        font-size: 48px;
    }

    .phone-timer-large {
        font-size: 56px;
    }

    .phone-date {
        font-size: 64px;
    }

    .testimonials-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 20px;
    }

    .testimonials-grid .testimonial-card:nth-child(1),
    .testimonials-grid .testimonial-card:nth-child(2),
    .testimonials-grid .testimonial-card:nth-child(3),
    .testimonials-grid .testimonial-card:nth-child(4),
    .testimonials-grid .testimonial-card:nth-child(5) {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .feature-title {
        font-size: 28px;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .phone-time-large {
        font-size: 40px;
    }

    .phone-timer-large {
        font-size: 48px;
    }

    .phone-date {
        font-size: 56px;
    }
}
