@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --bg: #ffffff;
    --bg-card: #f5f5f5;
    --border: #e0e0e0;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f5f5f5;
        --text-secondary: #999999;
        --bg: #0d0d0d;
        --bg-card: #1a1a1a;
        --border: #2a2a2a;
        --warning-bg: #422006;
        --danger-bg: #450A0A;
    }
}

body {
    font-family: 'Noto Sans TC', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== LAYOUT ===== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 32px 24px 64px;
}

.container {
    max-width: 680px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(13, 13, 13, 0.9);
    }
}

.header-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary);
    text-decoration: none;
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* ===== CONTENT ===== */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.page-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section p {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 15px;
}

.section p:last-child {
    margin-bottom: 0;
}

.section ul {
    list-style: none;
    margin: 12px 0;
}

.section li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 15px;
}

.section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.section li:last-child {
    margin-bottom: 0;
}

.section li strong {
    font-weight: 600;
    color: var(--text);
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 32px;
}

.highlight-box .section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

/* ===== NOTICE ===== */
.notice {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.5;
}

.notice-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.notice-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.notice strong {
    font-weight: 600;
}

/* ===== METHOD CARDS ===== */
.methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.method {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.method:hover {
    border-color: var(--primary-light);
}

.method.recommended {
    border-color: var(--primary);
    border-width: 2px;
}

.method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.method-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.method-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.method-steps {
    list-style: none;
    counter-reset: step;
}

.method-steps li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.method-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-steps li:last-child {
    margin-bottom: 0;
}

.method-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== CONTACT ===== */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 12px;
}

.contact-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    max-width: 680px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .main {
        padding: 24px 20px 48px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .method {
        padding: 16px;
    }
    
    .method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
