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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #1c1c1e;
    color: #f5f5f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #1a1a2e;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

body.dark-mode header {
    background: #0d0d1a;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    color: #e94560;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
}

nav ul li a:hover {
    color: #e94560;
    background: rgba(233,69,96,0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

body.dark-mode .search-box {
    background: rgba(44,44,46,0.8);
    border-color: rgba(255,255,255,0.1);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    font-size: 0.9rem;
    width: 150px;
    color: #333;
}

body.dark-mode .search-box input {
    color: #f5f5f7;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
}

.dark-toggle {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.dark-toggle:hover {
    background: #e94560;
    border-color: #e94560;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(26,26,46,0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
        z-index: 999;
    }
    nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .search-box input {
        width: 100px;
    }
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(15,52,96,0.2) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: #e94560;
    text-shadow: 0 0 20px rgba(233,69,96,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero .btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero .btn {
    background: #e94560;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233,69,96,0.3);
}

.hero .btn-outline {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
}

.hero .btn-outline:hover {
    background: #e94560;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb a {
    color: #e94560;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
}

/* Section common */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

body.dark-mode .card {
    background: rgba(44,44,46,0.8);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #e94560;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

body.dark-mode .card p {
    color: #aaa;
}

.card .meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

/* FAQ */
.faq-item {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

body.dark-mode .faq-item {
    background: rgba(44,44,46,0.8);
    border-color: rgba(255,255,255,0.05);
}

.faq-item:hover {
    transform: scale(1.01);
}

.faq-item h4 {
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active h4::after {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-top: 15px;
}

.faq-item .faq-answer p {
    margin-top: 10px;
    color: #555;
}

body.dark-mode .faq-item .faq-answer p {
    color: #aaa;
}

/* HowTo */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 65px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s;
}

body.dark-mode .howto-step {
    background: rgba(44,44,46,0.7);
    border-color: rgba(255,255,255,0.05);
}

.howto-step:hover {
    transform: translateX(5px);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 15px;
    top: 22px;
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(233,69,96,0.3);
}

.howto-step h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.howto-step p {
    color: #666;
}

body.dark-mode .howto-step p {
    color: #aaa;
}

/* Article list */
.article-list .article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: padding-left 0.3s;
}

.article-list .article-item:hover {
    padding-left: 10px;
}

body.dark-mode .article-list .article-item {
    border-color: rgba(255,255,255,0.08);
}

.article-item .article-info {
    flex: 1;
}

.article-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.article-item h3 a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark-mode .article-item h3 a {
    color: #f5f5f7;
}

.article-item h3 a:hover {
    color: #e94560;
}

.article-item p {
    color: #666;
    font-size: 0.95rem;
}

body.dark-mode .article-item p {
    color: #aaa;
}

.article-item .meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.article-item .read-more {
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    transition: letter-spacing 0.3s;
}

.article-item .read-more:hover {
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 20px;
}

body.dark-mode footer {
    background: #0d0d1a;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

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

footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}

footer ul li a:hover {
    color: #e94560;
    padding-left: 5px;
}

footer .copyright {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

footer .copyright a {
    color: #e94560;
    text-decoration: none;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e94560, #0f3460);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: #d63851;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SVG placeholders */
.svg-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: #e94560;
    transition: transform 0.3s;
}

.card:hover .svg-icon {
    transform: scale(1.1) rotate(-5deg);
}

.svg-placeholder {
    background: rgba(224,224,224,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    min-height: 100px;
}

body.dark-mode .svg-placeholder {
    background: rgba(58,58,60,0.6);
    color: #666;
}

/* Number animation */
.number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e94560;
}

/* Scroll animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .card {
        padding: 20px;
    }
}