:root {
    --pink-100: #fff0f5;
    --pink-200: #ffd6e7;
    --pink-300: #ffadd2;
    --pink-400: #ff85c0;
    --pink-500: #ff69b4;
    --pink-600: #ff1493;
    --pink-700: #c71585;
    --bg-color: #fff5f8;
    --text-color: #2d1b33;
    --text-secondary: #7a6b82;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 8px 32px rgba(255, 105, 180, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景裝飾 */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.blob-pink {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 182, 193, 0.15));
    top: -150px;
    right: -100px;
    animation: floatBlob 25s infinite alternate;
}

.blob-rose {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(199, 21, 133, 0.1));
    bottom: -100px;
    left: -100px;
    animation: floatBlob 20s infinite alternate-reverse;
}

.blob-light {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.12), rgba(255, 160, 200, 0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatBlob 30s infinite alternate;
}

@keyframes floatBlob {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(40px, 40px) scale(1.1); }
}

/* 玻璃擬態面板 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* 導航欄 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--pink-600);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--pink-700);
}

.nav-brand {
    margin: 0 auto;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-spacer {
    width: 100px;
}

/* 英雄區塊 */
.hero {
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 44px;
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.35);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(255, 105, 180, 0.35); }
    50% { box-shadow: 0 12px 50px rgba(255, 105, 180, 0.5); }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--pink-600);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 105, 180, 0.15);
    min-width: 110px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--pink-600);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 通用區塊樣式 */
section {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 功能區塊 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    border-radius: 20px;
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--pink-400), var(--pink-600));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 16px;
}

.study-icon { background: linear-gradient(135deg, #FF69B4, #FF1493); }
.review-icon { background: linear-gradient(135deg, #FF85C0, #FF69B4); }
.quiz-icon { background: linear-gradient(135deg, #FFB6D9, #FF85C0); }
.book-icon { background: linear-gradient(135deg, #FFC0D9, #FFB6D9); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--pink-600);
    background: rgba(255, 105, 180, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* 詞庫區塊 */
.wordbank-content {
    border-radius: 24px;
    padding: 32px;
}

.wordbank-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.12);
}

.wb-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wb-stat i {
    font-size: 24px;
    color: var(--pink-500);
}

.wb-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--pink-600);
}

.wb-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.word-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.word-sample {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 105, 180, 0.06);
    border: 1px solid rgba(255, 105, 180, 0.1);
    transition: var(--transition);
    cursor: default;
}

.word-sample:hover {
    background: rgba(255, 105, 180, 0.12);
    transform: translateY(-2px);
}

.ws-word {
    font-size: 15px;
    font-weight: 700;
    color: var(--pink-600);
    margin-bottom: 4px;
}

.ws-def {
    font-size: 12px;
    color: var(--text-secondary);
}

.refresh-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed rgba(255, 105, 180, 0.3);
    background: transparent;
    border-radius: 12px;
    color: var(--pink-500);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: rgba(255, 105, 180, 0.08);
    border-color: var(--pink-400);
}

/* 學習流程 */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 18px;
    transition: var(--transition);
}

.step:hover {
    transform: translateX(8px);
}

.step-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--pink-300);
    min-width: 60px;
    text-align: center;
}

.step-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pink-600);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 技術架構 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tech-card {
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-4px);
}

.tech-card i {
    font-size: 32px;
    color: var(--pink-500);
    margin-bottom: 14px;
}

.tech-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.tech-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 畫面預覽 */
.screenshot-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    min-width: 240px;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    scroll-snap-align: center;
    transition: var(--transition);
    opacity: 0.6;
    transform: scale(0.95);
}

.screenshot-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.2);
}

.sc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.screenshot-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.screenshot-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink-200);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--pink-500);
}

/* 頁尾 */
.site-footer {
    padding: 40px 24px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--pink-600);
    margin-bottom: 12px;
}

.footer-brand i {
    font-size: 24px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-link {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.3);
}

.footer-link + .footer-link {
    margin-top: 12px;
}

.download-btn {
    background: linear-gradient(135deg, #FF1493, #C71585);
    font-size: 16px;
    padding: 14px 32px;
    box-shadow: 0 4px 16px rgba(255, 20, 147, 0.3);
}

.hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(255, 105, 180, 0.4);
    transition: var(--transition);
}

.hero-download-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 36px rgba(255, 105, 180, 0.5);
}

.hero-download-btn i {
    font-size: 20px;
}

.hero-version {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-devices-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 24px;
    background: rgba(255, 105, 180, 0.1);
    color: var(--pink-600);
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 105, 180, 0.2);
    transition: var(--transition);
}

.hero-devices-link:hover {
    background: rgba(255, 105, 180, 0.18);
    transform: translateY(-2px);
}

/* 支持设备 */
.devices {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 14px;
    transition: var(--transition);
}

.device-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.12);
}

.device-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

/* 手表图标容器 */
.watch-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 表带 */
.band-top, .band-bottom {
    width: 18px;
    height: 14px;
    background: linear-gradient(180deg, #a0a0a0, #707070);
    border-radius: 3px;
}

.band-top {
    border-radius: 3px 3px 0 0;
}

.band-bottom {
    border-radius: 0 0 3px 3px;
}

/* 圆形手表表带更宽 */
.band-round .band-top,
.band-round .band-bottom {
    width: 22px;
    height: 16px;
}

/* 表盘主体 */
.watch-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 圆形表盘 - S系列 */
.watch-body.round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #a0a0a0, #707070);
    box-shadow: 0 3px 10px rgba(100, 100, 100, 0.35);
}

.watch-body.round .screen {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* 方形表盘 - 红米系列 */
.watch-body.square {
    width: 38px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, #a0a0a0, #707070);
    box-shadow: 0 3px 10px rgba(100, 100, 100, 0.35);
}

.watch-body.square .screen {
    width: 30px;
    height: 36px;
    border-radius: 7px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* 表冠 */
.watch-body .crown {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 10px;
    background: linear-gradient(145deg, #b0b0b0, #808080);
    border-radius: 2px;
    box-shadow: 1px 0 3px rgba(100, 100, 100, 0.4);
}

/* 方形手环 - 更小 */
.watch-body.square.small {
    width: 32px;
    height: 38px;
    border-radius: 8px;
}

.watch-body.square.small .screen {
    width: 24px;
    height: 30px;
    border-radius: 5px;
}

/* 響應式 */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 20px;
    }

    .hero {
        padding: 100px 16px 40px;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-box {
        min-width: 90px;
        padding: 12px 16px;
    }

    .stat-num {
        font-size: 22px;
    }

    section {
        padding: 40px 16px;
    }

    .section-header h2 {
        font-size: 26px;
    }

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

    .word-samples {
        grid-template-columns: repeat(2, 1fr);
    }

    .wordbank-info {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

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

    .screenshot-card {
        min-width: 200px;
    }
}

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

    .hero-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .feature-card {
        padding: 20px;
    }

    .word-samples {
        grid-template-columns: 1fr 1fr;
    }
}
