/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #FFC107;
    --dark-text: #2C3E50;
    --light-text: #5A6C7D;
    --bg-light: #FFFFFF;
    --bg-gray: #F8F9FA;
    --bg-gradient: linear-gradient(135deg, #FFE5D9 0%, #FFF5E1 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Banner Styles */
.banner {
    width: 100%;
    max-width: 1200px;
    margin: 3rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-top {
    margin-top: 2rem;
}

.banner-middle {
    margin: 4rem 0;
}

/* Section Styles */
section {
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease-out;
}

section h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

section h2 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    line-height: 1.4;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section p {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

section ul, section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

section li {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

section li strong {
    color: var(--dark-text);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--bg-gradient);
}

thead th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 15px;
}

tbody td {
    padding: 1.2rem;
    border-bottom: 1px solid #E9ECEF;
    color: var(--light-text);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg-gray);
}

/* FAQ Styles */
dl {
    margin: 2rem 0;
}

dt {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-gradient);
    border-radius: var(--border-radius);
}

dd {
    color: var(--light-text);
    margin: 0.5rem 0 1.5rem 0;
    padding: 1rem;
    line-height: 1.8;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: #ECF0F1;
    margin-top: 5rem;
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: #BDC3C7;
    line-height: 1.8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95A5A6;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-light);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        padding: 5rem 2rem 2rem;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .main-container {
        padding: 0 1rem;
    }

    section h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .banner {
        margin: 2rem 0;
        border-radius: 8px;
    }

    table {
        font-size: 14px;
    }

    thead th,
    tbody td {
        padding: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    section h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.4rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Author */
.author-profile {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
}

.author-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Back to Top */
#backToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1002;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop svg {
    width: 22px;
    height: 22px;
}

