* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-deep-blue: #0d1a36;
    --color-dark-red: #7a1818;
    --color-gold: #c9a85c;
    --color-white: #ffffff;
    --color-light-gray: #f4f6f9;
    --color-medium-gray: #5c667a;
    --color-dark-gray: #2a3342;
    --max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-dark-gray);
    line-height: 1.6;
    background-color: var(--color-white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--color-deep-blue);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
    font-size: 19px;
    font-weight: 600;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-deep-blue);
}

.btn-primary:hover {
    background: #b8974c;
}

.btn-secondary {
    background: transparent;
    color: var(--color-deep-blue);
    border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-deep-blue);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Newbie Hero */
.newbie-hero {
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, #13224a 100%);
    color: var(--color-white);
    padding: 56px 0 44px;
}

.newbie-hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 52px;
    align-items: center;
}

.newbie-hero-content h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.newbie-hero-content p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 26px;
    max-width: 560px;
}

.newbie-hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.newbie-hero-buttons .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.newbie-hero-buttons .btn-secondary:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.newbie-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Progress Bar */
.progress-section {
    background: var(--color-white);
    padding: 28px 0;
    border-bottom: 1px solid #e4e7ed;
}

.progress-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 2px;
    background: #e4e7ed;
    z-index: 0;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-number {
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: 10px;
}

.progress-text {
    font-size: 13px;
    color: var(--color-dark-gray);
    text-align: center;
    max-width: 100px;
    line-height: 1.4;
}

/* Section */
.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--color-light-gray);
}

.section-dark {
    background: var(--color-deep-blue);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--color-deep-blue);
    margin-bottom: 10px;
}

.section-dark .section-header h2 {
    color: var(--color-white);
}

.section-header p {
    color: var(--color-medium-gray);
    font-size: 15px;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.section-image {
    text-align: center;
    margin-bottom: 32px;
}

.section-image img {
    max-width: 340px;
    width: 100%;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card {
    background: var(--color-white);
    border: 1px solid #e4e7ed;
    border-top: 3px solid var(--color-gold);
    padding: 24px 20px;
}

.dashboard-card h4 {
    color: var(--color-deep-blue);
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.dashboard-card p {
    color: var(--color-medium-gray);
    font-size: 13px;
    line-height: 1.6;
}

/* Checklist */
.checklist {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 28px 32px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-icon {
    width: 24px;
    height: 24px;
    background: var(--color-gold);
    color: var(--color-deep-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.checklist-text {
    color: var(--color-dark-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Stepper */
.stepper {
    max-width: 840px;
    margin: 0 auto;
}

.stepper-item {
    display: flex;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #e4e7ed;
}

.stepper-item:last-child {
    border-bottom: none;
}

.stepper-number {
    width: 46px;
    height: 46px;
    background: var(--color-deep-blue);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.stepper-content {
    flex: 1;
}

.stepper-content h4 {
    color: var(--color-deep-blue);
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.stepper-content p {
    color: var(--color-medium-gray);
    font-size: 14px;
    line-height: 1.6;
}

.stepper-button {
    text-align: center;
    margin-top: 28px;
}

/* Settings Console */
.settings-console {
    max-width: 880px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid #e4e7ed;
}

.settings-item {
    display: flex;
    padding: 24px 28px;
    border-bottom: 1px solid #e4e7ed;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    width: 180px;
    flex-shrink: 0;
    color: var(--color-deep-blue);
    font-size: 14px;
    font-weight: 600;
}

.settings-desc {
    flex: 1;
}

.settings-desc p {
    color: var(--color-medium-gray);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.settings-desc p:last-child {
    margin-bottom: 0;
}

/* Rules Manual */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rule-card {
    background: var(--color-white);
    border-left: 3px solid var(--color-dark-red);
    padding: 22px 20px;
}

.rule-card h4 {
    color: var(--color-deep-blue);
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rule-card p {
    color: var(--color-medium-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Entry Map */
.entry-map {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}

.entry-card {
    background: var(--color-white);
    border: 1px solid #e4e7ed;
    padding: 26px 24px;
    text-align: center;
}

.entry-card h4 {
    color: var(--color-deep-blue);
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.entry-card p {
    color: var(--color-medium-gray);
    font-size: 13px;
    line-height: 1.6;
}

.entry-button {
    text-align: center;
    margin-top: 30px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #d4d9e3;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-deep-blue);
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    color: var(--color-dark-red);
}

.faq-icon {
    font-size: 18px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 0 18px;
    color: var(--color-medium-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: url("../pic/wpt-newbie-bg.webp") center/cover no-repeat;
    position: relative;
    color: var(--color-white);
    text-align: center;
    padding: 56px 0;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 26, 54, 0.97), rgba(19, 34, 74, 0.93));
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 26px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-buttons .btn-secondary:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--color-deep-blue);
    color: var(--color-white);
    padding: 34px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 17px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
}

.footer-link:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.7;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 48px;
    height: 48px;
    background: var(--color-gold);
    color: var(--color-deep-blue);
    border: none;
    border-radius: 2px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b8974c;
}

/* Responsive */
@media (max-width: 992px) {
    .newbie-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newbie-hero-image {
        order: -1;
    }
    
    .newbie-hero-buttons {
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .entry-map {
        grid-template-columns: 1fr;
    }
    
    .progress-track {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .progress-track::before {
        display: none;
    }
    
    .settings-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .settings-label {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-deep-blue);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .newbie-hero {
        padding: 44px 0 36px;
    }
    
    .newbie-hero-content h1 {
        font-size: 24px;
    }
    
    .section {
        padding: 42px 0;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .stepper-item {
        gap: 16px;
    }
    
    .progress-item {
        width: 50%;
    }
    
    .container {
        padding: 0 18px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
