:root {
    --primary-color: #00f2fe;
    --secondary-color: #6a11cb;
    --accent-color: #2575fc;
    --bg-dark: #0a0b1e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* Header & Nav */
header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 30, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}

/* Hero Section */
.hero {
    padding: 8rem 0 8rem;
    background: linear-gradient(rgba(10, 11, 30, 0.8), rgba(10, 11, 30, 0.9)), url('assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* Action Buttons Refined */
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 54px;
    border: 1px solid transparent;
}

/* Elite Gold Button */
.btn.primary-gold {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.btn.primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

/* Glass Buttons */
.btn.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn.primary {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    box-shadow: 0 10px 25px rgba(58, 123, 213, 0.2);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(58, 123, 213, 0.4);
}

.pulse-ani {
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
}

.btn.secondary-gold {
    background: rgba(255, 218, 68, 0.1);
    color: #ffda44;
    border: 1px solid rgba(255, 218, 68, 0.3);
}

.btn.secondary-gold:hover {
    background: rgba(255, 218, 68, 0.2);
    border-color: #ffda44;
}

.btn-group-special {
    display: flex;
    gap: 10px;
    background: rgba(255, 218, 68, 0.05);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 218, 68, 0.1);
}

.pulse-ani {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn.secondary {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.features {
    padding: 6rem 0;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dim);
}

/* Pricing */
.pricing {
    background: rgba(0, 0, 0, 0.3);
    padding: 8rem 0;
}

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

.price-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
}

.price-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.price-card.popular .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.price-card .price {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-card .price span {
    font-size: 1.8rem;
    /* 符号调小 */
    font-weight: 600;
    color: var(--primary-color);
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 3rem;
}

.price-card ul li {
    margin-bottom: 1rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.price-card ul li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 12px;
    font-weight: 700;
}

/* Compact Tutorial Grid */
.tutorial {
    padding: 6rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* 缩小间距 */
    background: var(--card-bg);
    padding: 1.2rem;
    /* 缩小内边距使整体上移 */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.step-v2:nth-child(even) {
    grid-template-columns: none;
    /* 重置之前的网格 */
}

.step-v2:nth-child(even) .step-v2-info {
    order: 0;
}

.step-v2:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-v2-info {
    font-size: 1rem;
}

.step-v2-num {
    /* display: block; */
    /* Removed as per instruction */
    font-size: 2rem;
    /* 略微调小序号 */
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.3;
    /* line-height: 1; */
    /* Removed as per instruction */
    /* margin-bottom: 1rem; */
    /* Removed as per instruction */
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.faq-item h4::before {
    content: "Q:";
    margin-right: 0.8rem;
    font-weight: 800;
    opacity: 0.6;
}

.faq-item p {
    color: var(--text-dim);
    line-height: 1.7;
    padding-left: 1.8rem;
    position: relative;
}

.faq-item p::before {
    content: "A:";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.4;
}

.step-v2-info h4 {
    font-size: 1.1rem;
    /* 略微调小标题 */
    margin-bottom: 0.5rem;
    color: #fff;
}

.step-v2-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
}

.step-v2-img {
    width: 100%;
    margin-top: 0.5rem;
    /* 移除 auto，手动设置较小间距使图片上移 */
}

/* Top Promo High-Contrast */
.top-promo {
    position: relative;
    width: 100%;
    background: #111;
    padding: 10px 0;
    z-index: 1001;
    border-bottom: 2px solid #ffd700;
    /* Strong Bottom Border (底框) */
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.top-promo a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.top-promo .badge-mini {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    font-style: italic;
    /* Different style for HOT */
    font-family: 'Arial Black', sans-serif;
    /* Bold distinct font */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: skewX(-10deg);
    /* Skewed for extra impact */
}

.top-promo strong {
    color: #ffd700;
}

.promo-link {
    color: #ffd700;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-left: 5px;
    animation: textFlash 2s infinite;
}

@keyframes textFlash {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 5px #ffd700;
    }

    50% {
        opacity: 0.7;
        text-shadow: none;
    }
}

@media (max-width: 768px) {
    .top-promo a {
        font-size: 0.8rem;
        flex-direction: row;
        padding: 8px 15px;
        flex-wrap: wrap;
    }
}

.step-v2-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 2.5rem;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        border-radius: 20px;
    }

    .modal-content h3 {
        font-size: 1.25rem;
    }

    .qr-box img {
        max-width: 100%;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: #fff;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.qr-box {
    background: #fff;
    padding: 1rem;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.qr-box img {
    width: 100%;
    max-width: 250px;
    display: block;
}

.modal-tip {
    font-size: 0.85rem;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px dashed rgba(255, 215, 0, 0.3);
}

/* Fix for previous empty ruleset warning */
@media (max-width: 768px) {

    /* No longer empty */
    .steps-grid {
        gap: 1.5rem;
    }
}

/* Support Card */
.support {
    padding: 6rem 0 10rem;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-card {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 40px;
}

.qr-placeholder {
    margin: 3rem 0;
}

.contact-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tools Section */
.tools {
    padding: 6rem 0;
}

.tool-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 4rem;
    border-radius: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.tool-tag {
    display: inline-block;
    background: #ffda44;
    color: #000;
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.tool-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tool-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tool-specs {
    list-style: none;
    margin-bottom: 2.5rem;
}

.tool-specs li {
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.tool-specs li::before {
    content: "⚡";
    margin-right: 10px;
}

.tool-usage {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usage-step p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.usage-step img {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tool-usage code {
    background: rgba(255, 218, 68, 0.1);
    color: #ffda44;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .tool-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }
}

/* Pricing Reference Section */
.pricing-ref {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.pricing-table-container {
    overflow-x: auto;
    border-radius: 24px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.model-table th,
.model-table td {
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.model-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.model-table .cred {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

.model-table .check {
    color: #4ade80;
    font-weight: bold;
}

.model-table .cross {
    color: #f87171;
    opacity: 0.5;
}

.pricing-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.info-box p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pricing-desc {
    margin-bottom: 2.5rem;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(37, 117, 252, 0.05);
    border: 1px solid rgba(37, 117, 252, 0.1);
}

.pricing-desc p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
}

.table-group {
    background: rgba(255, 255, 255, 0.03);
}

.table-group td {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem !important;
}

.model-table .byok {
    color: #ffd700;
    font-weight: 800;
    font-size: 0.85rem;
}

.table-footer {
    padding: 1.5rem 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    nav ul {
        display: none;
    }

    .price-card.popular {
        transform: none;
    }

    .hero-btns,
    .contact-btns {
        flex-direction: column;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 999;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.4);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatBreath 3s infinite ease-in-out;
}

.qr-preview {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 160px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.4s ease-out;
}

.qr-preview img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.qr-label {
    color: #333;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 4px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-contact:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.6);
}

.floating-contact .float-icon {
    font-size: 1.2rem;
}

.floating-contact span {
    font-weight: 700;
    font-size: 0.95rem;
}

@keyframes floatBreath {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width : 768px) {
    .floating-contact {
        right: 1.2rem;
        bottom: 1.2rem;
        padding: 0;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(106, 17, 203, 0.5);
    }

    .floating-contact span {
        display: none;
    }

    .floating-contact .float-icon {
        font-size: 1.5rem;
        margin: 0;
    }

    /* 手机端强制隐藏二维码预览气泡，防止遮占屏幕 */
    .qr-preview {
        display: none !important;
    }
}