/* Windy 之天文台 - 粉絲互動站 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0e1a;
    --bg2: #111830;
    --card: #1a2340;
    --border: #2a3555;
    --text: #e2e8f0;
    --muted: #8a93a8;
    --gold: #d4af37;
    --gold-light: #ffd700;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --purple: #8b5cf6;
}

body {
    font-family: "Segoe UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* 導航 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background: rgba(10, 14, 26, 0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 28px; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-name { font-size: 22px; font-weight: 800; background: linear-gradient(90deg, var(--blue-light), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 15px; }
.nav-link {
    color: var(--blue-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s;
}
.nav-link:hover { background: rgba(59,130,246,0.15); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* 按鈕 */
.btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-primary {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(59,130,246,0.4); }
.btn-outline {
    background: transparent;
    color: var(--blue-light);
    border: 1px solid var(--blue);
}
.btn-outline:hover { background: rgba(59,130,246,0.1); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 容器 */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 30px 60px; }

/* Hero */
.hero { text-align: center; padding: 50px 0 30px; }
.hero-logo { height: 110px; width: auto; margin-bottom: 20px; }
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 17px; }

/* 區塊 */
.section { margin-top: 50px; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 20px; font-size: 14px; }

/* 相片庫 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s;
}
.gallery-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.gallery-item img { width: 100%; display: block; aspect-ratio: 2/5; object-fit: cover; }
.gallery-item .photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 12px;
    color: white;
}

/* 功能卡片 */
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.form-row select, .form-row input, .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}
.form-row textarea { resize: vertical; }

/* 結果框 */
.result-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}
.result-box img { max-width: 100%; border-radius: 8px; }
.result-box .download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 30px;
    background: #22c55e;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

/* 會員卡 */
.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.member-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}
.member-card h3 { margin-bottom: 10px; font-size: 18px; }
.member-card p { color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.member-card input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    margin-bottom: 12px;
    font-size: 14px;
}
.member-card .btn { width: 100%; }

/* 點數套餐 */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.25s;
}
.plan-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.plan-card h3 { font-size: 18px; margin-bottom: 8px; }
.plan-card .price { font-size: 28px; font-weight: 800; color: var(--gold-light); margin: 10px 0; }
.plan-card .points-info { color: var(--muted); font-size: 14px; margin-bottom: 15px; }

/* 徽章 */
.user-badge {
    background: var(--gold);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.vip-badge {
    background: linear-gradient(135deg, #b8860b, #ffd700);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(255,215,0,0.6);
}
.points-badge {
    background: rgba(255,255,255,0.15);
    color: var(--gold-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
}
.modal-content h2 { margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--muted); }
.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    z-index: 300;
    animation: fadeIn 0.3s;
}
.toast.success { background: #16a34a; color: white; }
.toast.error { background: #dc2626; color: white; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 600px) {
    .hero h1 { font-size: 26px; }
    .navbar { padding: 12px 16px; }
    .brand-name { font-size: 18px; }
    .container { padding: 15px 16px 40px; }
}
