/* Frontend Design System - 100元 AI 黃頁 */

:root {
    --deep-blue: #1a2a3a;
    --gold: #d4af37;
    --clean-green: #28a745;
    --warning-yellow: #ffc107;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* 頂部卡片輪播 */
.hero-carousel-wrap {
    width: 100%;
    overflow: hidden;
    background: #000;
    border-bottom: 2px solid var(--gold);
    height: 250px; /* 增加高度以適應直式卡片 */
    position: relative;
}

.card-track {
    display: flex;
    width: calc(200px * 20); /* 10張圖 * 2 */
    animation: scroll-right 45s linear infinite;
}

.hero-carousel-wrap:hover .card-track {
    animation-play-state: paused;
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-200px * 10)); }
    100% { transform: translateX(0); }
}

.sprite-card {
    width: 200px;
    height: 250px;
    background-image: url('../images/cards-sprite.jpg');
    background-size: 1000px 500px; /* 精確匹配 5欄 x 2列 */
    flex-shrink: 0;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    filter: grayscale(100%) sepia(100%) brightness(80%);
    opacity: 0.3;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sprite-card:hover {
    filter: none;
    opacity: 1;
}

/* 定位 10 張卡片 (2x5 網格) */
.card-1 { background-position: 0 0; }
.card-2 { background-position: -200px 0; }
.card-3 { background-position: -400px 0; }
.card-4 { background-position: -600px 0; }
.card-5 { background-position: -800px 0; }
.card-6 { background-position: 0 -250px; }
.card-7 { background-position: -200px -250px; }
.card-8 { background-position: -400px -250px; }
.card-9 { background-position: -600px -250px; }
.card-10 { background-position: -800px -250px; }

/* 右上角導覽列 */
.top-nav {
    position: absolute;
    top: 250px; /* 隨輪播高度調整 */
    right: 0;
    padding: 25px 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-link-item {
    color: white;
    text-decoration: none;
    margin-right: 30px;
    font-size: 1rem;
    transition: color 0.3s;
}

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

.nav-link-btn {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link-btn:hover {
    background: var(--gold);
    color: var(--deep-blue);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* 自訂下拉選單 (無須 Bootstrap JS) */
.my-dropdown {
    position: relative;
    display: inline-block;
}
.my-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 24px 0px rgba(0,0,0,0.6);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.my-dropdown-menu a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.my-dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}
.my-dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background-color: rgba(212, 175, 55, 0.2);
}
.my-dropdown:hover .my-dropdown-menu {
    display: block;
}

/* 預設字體美學標題 */
.trust-title {
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-title {
    font-size: 5.3rem;
    font-family: 'BiaoKai', 'DFKai-sb', serif;
    letter-spacing: 0.15rem;
    line-height: 1.8;
}

.sub-title {
    letter-spacing: 5px; 
    color: #94a3b8;
    font-size: 1.08rem;
}

.commercial-slogan {
    font-size: 1.6rem;
    color: var(--text-light);
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.highlight-action {
    color: var(--warning-yellow);
    font-weight: bold;
    padding: 2px 10px;
    border: 1px dashed var(--warning-yellow);
    border-radius: 5px;
    background: rgba(255, 193, 7, 0.1);
}

.text-gold {
    color: var(--gold);
}

.info-section {
    background: linear-gradient(to bottom, var(--bg-dark), #090f1e);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.explanation-text {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.hardcore-proof {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.hero-section {
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: radial-gradient(circle at center, rgba(15,23,42,1) 0%, rgba(5,10,20,1) 100%);
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='160'%3E%3Ctext x='0' y='40' font-family='Courier New, monospace' font-size='20' fill='%23d4af37' fill-opacity='0.15'%3E%7B %22@context%22: %22https://schema.org%22, %22@type%22: %22DigitalAsset%22, %22name%22: %22AI Proof%22, %22status%22: %22200 OK%22 %7D%3C/text%3E%3Ctext x='450' y='120' font-family='Courier New, monospace' font-size='20' fill='%23d4af37' fill-opacity='0.15'%3E%7B %22@context%22: %22https://schema.org%22, %22@type%22: %22DigitalAsset%22, %22name%22: %22AI Proof%22, %22status%22: %22200 OK%22 %7D%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

/* 極簡 URL 輸入框 */
.url-input-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 70px;
    backdrop-filter: blur(20px);
    margin: 0 auto;
}

#landingForm {
    position: relative;
    width: 100%;
}

.url-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 1.4rem;
    color: white;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    outline: none;
}

.url-input:focus {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.analyze-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    color: var(--deep-blue);
    border: none;
    border-radius: 30px;
    padding: 12px 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.analyze-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: white;
}

/* 成果跑馬燈 */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    height: 40px;
    background-color: var(--deep-blue);
    border-top: 1px solid var(--gold);
}

.ticker {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 40s linear infinite;
    color: var(--gold);
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
}

/* AI 動態 Loading 文字 */
.ai-status {
    margin-top: 25px;
    color: var(--clean-green);
    font-size: 1.2rem;
    display: none;
    font-weight: 500;
}

/* RWD 響應式調整 */
@media (max-width: 768px) {
    .hero-carousel-wrap { height: 120px; }
    .sprite-card { width: 200px; height: 120px; background-size: 1000px 240px; }
    .card-track { width: calc(200px * 20); }
    @keyframes scroll-right {
        0% { transform: translateX(calc(-200px * 10)); }
        100% { transform: translateX(0); }
    }
    .card-2 { background-position: -200px 0; }
    .card-3 { background-position: -400px 0; }
    .card-4 { background-position: -600px 0; }
    .card-5 { background-position: -800px 0; }
    .card-6 { background-position: 0 -120px; }
    .card-7 { background-position: -200px -120px; }
    .card-8 { background-position: -400px -120px; }
    .card-9 { background-position: -600px -120px; }
    .card-10 { background-position: -800px -120px; }
    
    .top-nav { top: 120px; padding: 15px 20px; }
    .hero-title { font-size: 2.2rem; }
    .sub-title { font-size: 0.8rem; letter-spacing: 1px; }
    .analyze-btn { position: static; width: 100%; margin-top: 15px; }
}
