/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #deecf9;
    --accent: #00b7c3;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #323130;
    --text-light: #605e5c;
    --border: #e1dfdd;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header === */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-icon { font-size: 1.8rem; }

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #003f6e 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: box-shadow var(--transition);
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(0,120,212,0.3), var(--shadow-lg);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* === Quick Links / Cards === */
.quick-links {
    padding: 3rem 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    display: block;
    color: var(--text);
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--text);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Content Sections === */
.content-section {
    padding: 2.5rem 0 3rem;
    animation: fadeIn 0.3s ease;
}

.content-section.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* === Guide Blocks === */
.guide-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.guide-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* === Steps === */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* === Tips === */
.tip {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.tip-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Accordion === */
.accordion { display: flex; flex-direction: column; gap: 0.5rem; }

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.accordion-btn::after {
    content: '▸';
    font-size: 1rem;
    transition: transform var(--transition);
}

.accordion-btn.active::after { transform: rotate(90deg); }

.accordion-btn:hover { background: var(--primary-light); }

.accordion-content {
    display: none;
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.95rem;
}

.accordion-content.active { display: block; }

.accordion-content ul, .accordion-content ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

/* === Shortcut Table === */
.shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.shortcut-table th, .shortcut-table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.shortcut-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.9rem;
}

.shortcut-table td { font-size: 0.9rem; }

kbd {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.85rem;
    font-family: 'Segoe UI', monospace;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

code {
    background: var(--bg);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
}

/* === Contact Info === */
.contact-info {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.contact-info li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* === Footer === */
.footer {
    background: #1b1b1b;
    color: #a0a0a0;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.footer-brand a { color: var(--accent); }

.footer-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-links a { color: #ccc; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-links span { color: #555; }

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1.25rem;
    color: #666;
}

/* === Search Results === */
.search-results {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.search-result-item:hover { background: var(--primary-light); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h4 { color: var(--primary); margin-bottom: 0.25rem; }
.search-result-item p { font-size: 0.9rem; color: var(--text-light); }
.no-results { text-align: center; color: var(--text-light); padding: 2rem; }

/* === Mobile === */
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        gap: 0.25rem;
    }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 1.6rem; }
    .hero-sub { font-size: 1rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .guide-block { padding: 1.25rem; }
    .tips-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; gap: 0.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
}

/* === Print === */
@media print {
    .header, .hero, .search-box, .footer { display: none; }
    .content-section.hidden { display: block !important; }
    .guide-block { box-shadow: none; border: 1px solid #ccc; }
}
