﻿:root {
    --best-stock-card-bg: rgba(15, 20, 32, 0.85);
    --best-stock-card-border: rgba(255, 255, 255, 0.08);
    --best-stock-legend-text: #edf2ff;
    --best-stock-chart-bg: rgba(9, 13, 24, 0.95);
    --best-stock-chart-axis-color: rgba(255, 255, 255, 0.65);
    --best-stock-chart-grid-color: rgba(255, 255, 255, 0.12);
    --best-stock-chart-portfolio-line: #4f8cff;
    --best-stock-chart-portfolio-area-start: rgba(79, 140, 255, 0.32);
    --best-stock-chart-portfolio-area-end: rgba(79, 140, 255, 0.04);
    --best-stock-chart-spx-line: #7b8294;
    --best-stock-chart-spx-area-start: rgba(123, 130, 148, 0.26);
    --best-stock-chart-spx-area-end: rgba(123, 130, 148, 0.04);
    --best-stock-chart-nasdaq-line: #9da7c3;
    --best-stock-chart-nasdaq-area-start: rgba(157, 167, 195, 0.22);
    --best-stock-chart-nasdaq-area-end: rgba(157, 167, 195, 0.04);
    --best-performance-inner-bg: linear-gradient(145deg, #fdfdfd, #e3e7f3);
    --best-performance-neutral-ring: linear-gradient(135deg, #d3d9e6, #939cb3);
    --best-performance-highlight-ring: conic-gradient(from 180deg, #4db7ff, #2876ff, #4db7ff);
    --best-performance-halo-color: rgba(79, 140, 255, 0.25);
    --best-performance-label-color: rgba(28, 34, 52, 0.92);
    --best-performance-value-color: #0e5cc5;
    --best-performance-highlight-title-color: rgba(25, 50, 95, 0.88);
    --best-performance-highlight-value-color: #1d8fff;
}

[data-bs-theme='light'] {
    --best-stock-card-bg: rgba(255, 255, 255, 0.95);
    --best-stock-card-border: rgba(15, 23, 42, 0.12);
    --best-stock-legend-text: rgba(15, 20, 32, 0.85);
    --best-stock-chart-bg: #ffffff;
    --best-stock-chart-axis-color: rgba(52, 64, 84, 0.85);
    --best-stock-chart-grid-color: rgba(148, 163, 184, 0.35);
    --best-stock-chart-portfolio-line: var(--phoenix-primary);
    --best-stock-chart-portfolio-area-start: rgba(13, 110, 253, 0.18);
    --best-stock-chart-portfolio-area-end: rgba(13, 110, 253, 0.01);
    --best-stock-chart-spx-line: #6b7280;
    --best-stock-chart-spx-area-start: rgba(107, 114, 128, 0.14);
    --best-stock-chart-spx-area-end: rgba(107, 114, 128, 0.015);
    --best-stock-chart-nasdaq-line: #8b5cf6;
    --best-stock-chart-nasdaq-area-start: rgba(139, 92, 246, 0.15);
    --best-stock-chart-nasdaq-area-end: rgba(139, 92, 246, 0.02);
    --best-performance-inner-bg: linear-gradient(145deg, #ffffff, #f3f6ff);
    --best-performance-neutral-ring: linear-gradient(135deg, #e5eaf5, #c2c8d6);
    --best-performance-highlight-ring: conic-gradient(from 180deg, #6dd5ff, #2f76ff, #6dd5ff);
    --best-performance-halo-color: rgba(79, 140, 255, 0.18);
    --best-performance-label-color: rgba(15, 23, 42, 0.9);
    --best-performance-value-color: #0d6efd;
    --best-performance-highlight-title-color: rgba(15, 23, 42, 0.75);
    --best-performance-highlight-value-color: #0a58ca;
}

.best-stock-card {
    background-color: var(--best-stock-card-bg);
    border: 1px solid var(--best-stock-card-border) !important;
    color: var(--best-stock-legend-text);
}

.best-container {
    margin-left: 13%;
    margin-right: 13%;
}

.best-container-fullwidth {
    margin-left: 1%;
    margin-right: 1%;
}

.best-stock-legend {
    gap: 0.75rem;
}

.best-stock-legend-item {
    background-color: var(--best-stock-card-bg);
    border: 1px solid var(--best-stock-card-border);
    border-radius: 0.85rem;
    padding: 0.65rem 1.1rem;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    color: var(--best-stock-legend-text);
}

.best-stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.best-stock-dot-portfolio {
    background-color: var(--best-stock-chart-portfolio-line);
}

.best-stock-dot-spx {
    background-color: var(--best-stock-chart-spx-line);
}

.best-stock-dot-nasdaq {
    background-color: var(--best-stock-chart-nasdaq-line);
}

.best-stock-chart {
    width: 100%;
    height: 320px;
}

.best-plan-section {
    background: var(--best-stock-card-bg);
    color: var(--best-stock-legend-text);
    border: 1px solid var(--best-stock-card-border);
    position: relative;
    border-radius: 0.45rem;
}

.best-plan-card {
    position: relative;
    overflow: hidden;
    background: var(--best-stock-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.3rem 1.6rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

    .best-plan-card.neon:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 45px rgba(0, 0, 0, 0.4);
        border-color: rgba(79, 140, 255, 0.4);
    }

.best-plan-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 109, 109, 0.16);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff9393;
}

.best-plan-duration {
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.best-plan-price {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--best-stock-legend-text);
    letter-spacing: -0.02em;
}

    .best-plan-price small {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 400;
        letter-spacing: 0.08em;
    }

.best-plan-feature-list {
    margin: 1.5rem 0 0;
    padding: 0;
}

    .best-plan-feature-list li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
    }

        .best-plan-feature-list li::before {
            content: '';
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--best-stock-chart-portfolio-line);
            box-shadow: none;
            flex-shrink: 0;
        }

.best-plan-btn {
    background: #4f8cff;
    border: 0;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(79, 140, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .best-plan-btn:hover,
    .best-plan-btn:focus {
        transform: translateY(-1px);
        background: #3f72cc;
        box-shadow: 0 12px 25px rgba(79, 140, 255, 0.3);
    }

.best-plan-tabs-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.best-plan-tabs {
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

    .best-plan-tabs::-webkit-scrollbar {
        display: none;
    }

.best-plan-tab {
    min-width: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.85rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    position: relative;
    transition: all 0.25s ease;
    overflow: hidden;
}

    .best-plan-tab::after {
        content: '';
        position: absolute;
        left: 1.2rem;
        right: 1.2rem;
        bottom: 0.6rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(79, 140, 255, 0), rgba(79, 140, 255, 0.6), rgba(79, 140, 255, 0));
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.25s ease;
        opacity: 0;
    }

    .best-plan-tab.btn:hover,
    .best-plan-tab.btn:focus,
    .best-plan-tab.btn:active {
        background: var(--best-stock-card-bg);
        color: var(--best-stock-legend-text);
        border-color: var(--best-stock-card-border);
    }


    .best-plan-tab.active::after {
        transform: scaleX(1);
        opacity: 1;
    }

.best-plan-tab__name {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.best-plan-tab__price {
    font-size: 1.1rem;
    font-weight: 600;
}

.best-plan-tab__tag {
    position: absolute;
    top: 0.35rem;
    right: 1rem;
    background: linear-gradient(135deg, #f97316, #fb7185);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.best-plan-tab.active {
    background: rgba(79, 140, 255, 0.12);
    border-color: rgba(79, 140, 255, 0.35);
    color: #fff;
    box-shadow: none;
}

.best-plan-single-card {
    max-width: 520px;
}

[data-bs-theme='light'] .best-plan-section {
    color: var(--phoenix-body-color);
}

[data-bs-theme='light'] .best-plan-card {
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

[data-bs-theme='light'] .best-plan-duration {
    color: rgba(15, 23, 42, 0.45);
}

[data-bs-theme='light'] .best-plan-price {
    color: var(--phoenix-body-color);
}

    [data-bs-theme='light'] .best-plan-price small,
    [data-bs-theme='light'] .best-plan-feature-list li {
        color: rgba(15, 23, 42, 0.75);
    }

        [data-bs-theme='light'] .best-plan-feature-list li::before {
            background: var(--phoenix-primary, #0d6efd);
            box-shadow: 0 0 8px rgba(13, 110, 253, 0.45);
        }

[data-bs-theme='light'] .best-plan-tab {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.7);
}

    [data-bs-theme='light'] .best-plan-tab.active {
        background: rgba(13, 110, 253, 0.08);
        border-color: rgba(13, 110, 253, 0.45);
        color: var(--phoenix-body-color);
    }

[data-bs-theme='light'] .best-plan-tabs-wrapper {
    border-color: rgba(15, 23, 42, 0.08);
}

[data-bs-theme='light'] .best-plan-badge {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

/* 明亮主题：图例项优化 */
[data-bs-theme='light'] .best-stock-legend-item {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* 明亮主题：订阅按钮优化 */
[data-bs-theme='light'] .best-showcase__cta {
    background: var(--phoenix-primary, #0d6efd);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.25);
}

    [data-bs-theme='light'] .best-showcase__cta:hover {
        background: #0b5ed7;
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    }

.best-performance-circles {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-performance-circle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-performance-circle--lower {
    left: 5%;
    bottom: 20px;
    z-index: 1;
}

.best-performance-circle--upper {
    right: 5%;
    top: 20px;
    z-index: 2;
}

.best-performance-circle__ring {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    padding: 10px;
    background: var(--best-performance-neutral-ring);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

.best-performance-circle--highlighted .best-performance-circle__ring {
    background: var(--best-performance-highlight-ring);
    box-shadow: 0 0 60px var(--best-performance-halo-color), 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 60px var(--best-performance-halo-color), 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow: 0 0 80px var(--best-performance-halo-color), 0 25px 60px rgba(0, 0, 0, 0.4);
    }
}

.best-performance-circle__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--best-performance-inner-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.08);
}

.best-performance-circle__label {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--best-performance-label-color);
    letter-spacing: 0.02em;
}

.best-performance-circle__value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--best-performance-value-color);
    letter-spacing: -0.02em;
}

.best-performance-circle--highlighted .best-performance-circle__label {
    color: var(--best-performance-highlight-title-color);
}

.best-performance-circle--highlighted .best-performance-circle__value {
    color: var(--best-performance-highlight-value-color);
}

@media (max-width: 992px) {
    .best-performance-circles {
        height: 350px;
    }

    .best-performance-circle__ring {
        width: 220px;
        height: 220px;
    }

    .best-performance-circle__label {
        font-size: 0.95rem;
    }

    .best-performance-circle__value {
        font-size: 2rem;
    }

    .best-performance-circle--lower {
        left: 10%;
        bottom: 10px;
    }

    .best-performance-circle--upper {
        right: 10%;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .best-stock-legend-item {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }

    .best-stock-chart {
        height: 260px;
    }

    .best-plan-price {
        font-size: 2.2rem;
    }

    .best-plan-tabs {
        gap: 1rem;
    }

    .best-plan-tab {
        min-width: 160px;
    }

    /* 移动端：垂直排列圆圈 */
    .best-performance-circles {
        height: 480px;
        margin-top: 2rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .best-performance-circle {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }

    .best-performance-circle--lower {
        order: 2;
    }

    .best-performance-circle--upper {
        order: 1;
    }

    .best-performance-circle__ring {
        width: 200px;
        height: 200px;
        padding: 10px;
    }

    .best-performance-circle__label {
        font-size: 0.9rem;
    }

    .best-performance-circle__value {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕：进一步缩小圆圈 */
    .best-performance-circles {
        height: 420px;
        gap: 1rem;
    }

    .best-performance-circle__ring {
        width: 170px;
        height: 170px;
        padding: 8px;
    }

    .best-performance-circle__label {
        font-size: 0.8rem;
    }

    .best-performance-circle__value {
        font-size: 1.5rem;
    }
}


.best-showcase {
    background: var(--best-stock-card-bg);
    color: var(--best-stock-legend-text);
    position: relative;
    border-radius: 0.45rem;
    padding: 2.5rem;
}

    .best-showcase::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 0.45rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

.best-showcase__image {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(13, 17, 32, 0.82));
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

    .best-showcase__image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.18), transparent 60%);
        pointer-events: none;
    }

    .best-showcase__image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 1rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    }

.best-showcase__content {
    color: var(--best-stock-legend-text);
}

.best-showcase__cta {
    background: #4f8cff;
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .best-showcase__cta:hover {
        background: #3f72cc;
        color: #fff;
        transform: translateY(-2px);
    }

[data-bs-theme='light'] .best-showcase {
    color: var(--phoenix-body-color);
}

    [data-bs-theme='light'] .best-showcase::after {
        border-color: rgba(15, 23, 42, 0.08);
    }

[data-bs-theme='light'] .best-showcase__image {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(255, 255, 255, 0.95));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

[data-bs-theme='light'] .best-showcase__content {
    color: var(--phoenix-body-color);
}

/* FAQ Section */
.best-faq-section {
}

.best-faq-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.best-faq-question-item {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

    .best-faq-question-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(79, 140, 255, 0.3);
        transform: translateX(4px);
    }

    .best-faq-question-item.active {
        background: rgba(79, 140, 255, 0.15);
        border-color: rgba(79, 140, 255, 0.5);
        color: #4f8cff;
        transform: translateX(4px);
    }

.best-faq-answer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 2rem;
    min-height: 300px;
}

.best-faq-answer-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
}

    .best-faq-answer-content p {
        margin-bottom: 1rem;
    }

        .best-faq-answer-content p:last-child {
            margin-bottom: 0;
        }

/* 明亮主题适配 */
[data-bs-theme='light'] .best-faq-question-item {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.1);
    color: rgba(15, 23, 42, 0.85);
}

    [data-bs-theme='light'] .best-faq-question-item:hover {
        background: rgba(15, 23, 42, 0.05);
        border-color: rgba(13, 110, 253, 0.3);
    }

    [data-bs-theme='light'] .best-faq-question-item.active {
        background: rgba(13, 110, 253, 0.1);
        border-color: rgba(13, 110, 253, 0.5);
        color: #0d6efd;
    }

[data-bs-theme='light'] .best-faq-answer {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.1);
}

[data-bs-theme='light'] .best-faq-answer-content {
    color: rgba(15, 23, 42, 0.85);
}

@media (max-width: 992px) {
    .best-faq-answer {
        margin-top: 1.5rem;
        min-height: 250px;
    }
}
