/* 樂賣團購訂單官網樣式表 */

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

:root {
    /* 品牌色彩 - 與市集風格一致 */
    --primary-color: #FF8A80;
    --background-color: #FBF8F3;
    --card-background: #FFFFFF;
    --cream-light: #FFFDF9;
    --text-primary: #3D3A36;
    --text-secondary: #6B6660;
    --text-tertiary: #9B9590;
    --border-color: #EDE8E2;
    --warm-gray: #9B9590;
    --caramel: #C4956A;
    --card-shadow: rgba(139, 119, 101, 0.08);

    /* 間距系統 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-xxl: 24px;

    /* 圓角系統 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* 陰影 - 更柔和 */
    --shadow-sm: 0 2px 12px var(--card-shadow);
    --shadow-md: 0 4px 20px rgba(139, 119, 101, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 119, 101, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ============================================
   導航列
   ============================================ */
.navbar {
    background-color: var(--card-background);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
}

.nav-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xxl);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Navigation Button Styles */
.nav-menu .nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* 樂賣市集 - 次要按鈕 (外框) */
.nav-menu .nav-btn-market {
    border: 1px solid #E0E0E0;
    color: var(--text-secondary);
    background-color: transparent;
}

.nav-menu .nav-btn-market:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* 商家後台 - 主要按鈕 (實心無陰影) */
.nav-menu .nav-btn-dashboard {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    /* box-shadow explicitly removed per user request */
    box-shadow: none;
}

.nav-menu .nav-btn-dashboard:hover {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    /* Optional: soft shadow only on hover, or keep none if preferred. Keeping concise per request "no shadow effect" for base state, adding minimal hover feedback */
    box-shadow: 0 4px 12px rgba(255, 138, 128, 0.2);
}

/* 手機版按鈕群組 - 桌面隱藏 */
.nav-mobile-btns {
    display: none;
}

/* ============================================
   Hero 區塊
   ============================================ */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(180deg, #E8DFD5 0%, var(--background-color) 100%);
}

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

.app-icon {
    margin-bottom: var(--spacing-xxl);
    animation: float 3s ease-in-out infinite;
}

.app-icon img {
    width: 140px;
    height: 140px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.hero-tagline {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xxl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Feature Highlight Banner - 簡潔無背景 */
.feature-highlight {
    max-width: 700px;
    margin: var(--spacing-xxl) auto var(--spacing-xxl);
    padding: 40px 32px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.feature-highlight-content {
    text-align: center;
}

.highlight-title {
    font-size: 40px;
    font-weight: 700;
    color: #2F2F2F;
    margin-bottom: 24px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-title .title-line-1,
.highlight-title .title-line-2 {
    display: block;
    line-height: 1.4;
}

.highlight-title .title-line-2 {
    margin-top: 16px;
}

.highlight-desc {
    font-size: 17px;
    color: #9A9A9A;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

.highlight-desc strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 半透明膠囊按鈕 */
.btn-trial-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 138, 128, 0.15);
    color: #2C2C2C;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-trial-ghost:hover {
    background: rgba(255, 138, 128, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-trial-ghost:active {
    transform: translateY(0);
}

/* ============================================
   按鈕樣式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background-color: #FF6B6B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 138, 128, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   區塊標題
   ============================================ */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   預覽輪播區塊
   ============================================ */
.preview-carousel {
    padding: 80px 0 60px;
    background-color: var(--background-color);
}

.carousel-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.carousel-control:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-control.prev {
    left: -60px;
}

.carousel-control.next {
    right: -60px;
}

.carousel-control svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dots .dot:hover {
    background-color: rgba(255, 138, 128, 0.5);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   功能特色區塊
   ============================================ */
.features {
    padding: 80px 0;
    background-color: var(--card-background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xxl);
}

.feature-card {
    padding: var(--spacing-xxl);
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    display: block;
}

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

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.feature-badge.free {
    background-color: #4CAF50;
    color: white;
}

.feature-badge.premium {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   方案比較區塊
   ============================================ */
.pricing {
    padding: 80px 0;
    background-color: var(--background-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xxl);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.pricing-card-featured {
    border: 3px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: var(--spacing-xxl);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.price {
    margin-bottom: var(--spacing-md);
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-description {
    font-size: 15px;
    color: var(--text-secondary);
}

.trial-info {
    font-size: 14px;
    color: #FFA500;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-xxl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    font-size: 15px;
}

.feature-included {
    color: var(--text-primary);
}

.feature-excluded {
    color: var(--text-tertiary);
}

.pricing-card button {
    width: 100%;
}

/* ============================================
   聯絡區塊
   ============================================ */
.contact {
    padding: 80px 0;
    background-color: var(--card-background);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xxl);
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    flex: 1;
    text-align: center;
    padding: var(--spacing-xxl);
    background-color: var(--background-color);
    border-radius: var(--radius-lg);
}

.contact-icon {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-card a {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #FF6B6B;
    text-decoration: underline;
}

/* ============================================
   頁尾
   ============================================ */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 0 var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xxl);
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   隱私權政策 & 使用條款頁面
   ============================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px var(--spacing-xl);
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.legal-content h1 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.legal-content h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: var(--spacing-lg);
}

.legal-content h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
}

.legal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.legal-content ul,
.legal-content ol {
    margin-left: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
}

.legal-content li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.legal-content .last-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-xxl);
}

.legal-content .contact-info {
    background-color: var(--background-color);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-md);
    margin-top: 40px;
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-md);
        display: none;
    }

    /* 手機版按鈕群組 */
    .nav-mobile-btns {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-mobile-btns .nav-btn {
        padding: 6px 14px;
        border-radius: 18px;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
        white-space: nowrap;
    }

    .nav-mobile-btns .nav-btn-market {
        border: 1px solid #E0E0E0;
        color: var(--text-secondary);
        background-color: transparent;
    }

    .nav-mobile-btns .nav-btn-dashboard {
        background-color: var(--primary-color);
        color: white;
        border: 1px solid var(--primary-color);
        box-shadow: none;
    }

    .feature-highlight {
        padding: 28px 20px;
        margin: var(--spacing-lg) auto var(--spacing-lg);
    }

    .highlight-title {
        font-size: 28px;
        margin-bottom: 18px;
        line-height: 1.4;
        letter-spacing: 0.3px;
    }

    .highlight-title .title-line-1,
    .highlight-title .title-line-2 {
        line-height: 1.4;
    }

    .highlight-title .title-line-2 {
        margin-top: 20px;
    }

    .highlight-desc {
        font-size: 15px;
        line-height: 1.7;
    }

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

    /* 輪播響應式 */
    .preview-carousel {
        padding: 40px 0 40px;
    }

    .carousel-container {
        max-width: 90%;
        padding: 0;
    }

    .carousel-slide img {
        border-radius: var(--radius-md);
    }

    /* 手機版隱藏左右箭頭 */
    .carousel-control {
        display: none;
    }

    /* 手機版圓點樣式調整 */
    .carousel-dots {
        margin-top: var(--spacing-lg);
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dots .dot.active {
        width: 24px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    .legal-content h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 20px;
    }
}

/* ============================================
   平滑滾動
   ============================================ */
html {
    scroll-behavior: smooth;
}