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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 56px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: #1a1a2e;
}

.logo-icon {
    font-size: 24px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a2e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 8px 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 56px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 44px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* ===== Section Common ===== */
.section {
    padding: 48px 0;
}

.section-alt {
    background-color: #f8f9fc;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #1a1a2e;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.news-date {
    color: #999;
}

.news-read {
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Reviews List ===== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.review-rank {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-info {
    flex: 1;
    min-width: 0;
}

.review-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.review-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-label {
    font-size: 12px;
    color: #999;
}

.score-value {
    font-size: 16px;
    font-weight: 800;
    color: #4f46e5;
}

/* ===== Guides Grid ===== */
.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.guide-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.guide-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.guide-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.guide-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.guide-link {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 44px;
    line-height: 24px;
}

.guide-link:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* ===== About Section ===== */
.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #888;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
    display: inline-block;
    min-height: 28px;
    line-height: 28px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cookie-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    text-align: center;
}

.cookie-link {
    color: #818cf8;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.2s;
}

.cookie-accept {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
    padding-right: 44px;
}

.modal-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 20px 0 8px;
}

/* ===== Tablet (≥600px) ===== */
@media (min-width: 600px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 80px 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 32px;
    }

    .modal-content {
        max-width: 600px;
        margin: auto;
        border-radius: 20px;
        max-height: 80vh;
    }
}

/* ===== Desktop (≥960px) ===== */
@media (min-width: 960px) {
    .header {
        height: 64px;
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        transform: none;
        opacity: 1;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-bottom: none;
        box-shadow: none;
        gap: 4px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 15px;
        border-radius: 8px;
        min-height: auto;
    }

    .hero {
        margin-top: 64px;
        padding: 100px 24px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 48px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .news-title {
        font-size: 20px;
    }

    .guides-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .about-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-text {
        text-align: left;
        flex: 1;
    }
}

/* ===== Large Desktop (≥1200px) ===== */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 52px;
    }

    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
