/* assets/landing.css - 獨立登陸頁專用樣式 */

/* 登陸頁 Hero */
.landing-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 5rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.landing-hero .badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.landing-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.landing-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}

.landing-hero .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-hero .cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-primary {
    background: #ffffff;
    color: #1e40af;
}

.cta-btn-primary:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.6);
}

.cta-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* 快速摘要區塊 */
.quick-summary {
    background: #ffffff;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
}

.summary-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.summary-item h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.summary-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 詳細內容區塊 */
.detail-section {
    padding: 4rem 0;
}

.detail-section:nth-child(even) {
    background: #f8fafc;
}

.detail-section h2 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #93c5fd;
}

.detail-section h3 {
    font-size: 1.5rem;
    color: #334155;
    margin: 2rem 0 1rem 0;
}

.detail-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #334155;
}

.detail-section ul, .detail-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.detail-section li {
    line-height: 1.8;
    margin-bottom: 0.6rem;
    color: #334155;
}

.detail-section li strong {
    color: #1e40af;
}

/* 特色卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid #3b82f6;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
}

.feature-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 比較表格 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comparison-table thead {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
}

.comparison-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.comparison-table tbody tr:hover {
    background: #f1f5f9;
}

.comparison-table .highlight-row {
    background: #dbeafe;
    font-weight: 600;
}

.comparison-table .highlight-row:hover {
    background: #bfdbfe;
}

/* 使用情境區塊 */
.use-case-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 5px solid #3b82f6;
}

.use-case-card h4 {
    color: #1e40af;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.use-case-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* FAQ 區塊 */
.faq-section {
    padding: 4rem 0;
}

.faq-section h2 {
    font-size: 2rem;
    color: #1e40af;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    background: #ffffff;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: #334155;
    line-height: 1.8;
}

/* 步驟流程 */
.steps-section {
    padding: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-item h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA 區塊 */
.cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    border: none;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #ffffff;
}

.cta-section .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 返回導覽 */
.back-nav {
    padding: 1rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.back-nav a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.back-nav a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 相關頁面導覽 */
.related-pages {
    padding: 4rem 0;
    background: #f8fafc;
}

.related-pages h2 {
    font-size: 1.8rem;
    color: #1e40af;
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s;
    display: block;
    border: 2px solid transparent;
}

.related-card:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.12);
}

.related-card h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.related-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 代碼區塊 */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 提示框 */
.info-box {
    background: #dbeafe;
    border-left: 5px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.info-box.success {
    background: #d1fae5;
    border-color: #10b981;
}

.info-box h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.info-box.warning h4 {
    color: #92400e;
}

.info-box.success h4 {
    color: #065f46;
}

.info-box p {
    color: #334155;
    line-height: 1.7;
}

/* 響應式 */
@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .landing-hero .subtitle {
        font-size: 1.05rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 0.7rem;
    }
    
    .detail-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
