/* Pricing Page Styles */

/* Pricing-specific overrides for common components */

/* The pricing toggle inside the tech-hero */
.pricing-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.discount {
    background: linear-gradient(135deg, var(--primary-color), #9333ea);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 1rem;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pricing-toggle h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.pricing-toggle .subtitle {
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch.active::before {
    transform: translateX(30px);
}

/* Toggle Labels */
.toggle-labels {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.toggle-label {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Check Icon */
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
}

/* Billing Toggle */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.billing-toggle .toggle-options {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.toggle-option {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-color-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 120px;
    text-align: center;
}

.toggle-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.toggle-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Pricing Cards Section */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card .featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.0rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-price {
    margin-bottom: 2rem;
}

.price-original {
    font-size: 1.1rem;
    color: var(--text-color-light);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount .currency {
    font-size: 1rem;
}

.price-amount .period {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-color-light);
}

.card-body {
    margin-bottom: 2rem;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-body li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.card-body li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.card-footer {
    margin-top: auto;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-current {
    width: 100%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 400;
    font-size: 1rem;
    cursor: not-allowed;
    opacity: 0.7;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.price-savings {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.icon.starter {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon.professional {
    background: linear-gradient(135deg, var(--primary-color), #9333ea);
}

.icon.enterprise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-highlight {
    color: var(--primary-color);
}

/* Pricing Comparison Styles */

/* Pricing Comparison Section */
.pricing-comparison {
    padding: var(--section-padding);
    background-color: var(--dark-bg);
    min-height: 100vh;
}

/* Pricing Header */
.pricing-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.plan-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-card .featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.plan-card .current-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.plan-card.featured .current-plan-badge {
    top: 8px;
    right: 20px;
}

.plan-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.plan-card:hover .plan-icon {
    transform: translateY(-2px);
    background: transparent;
}

.plan-card.featured .plan-icon {
    background: transparent;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.plan-price {
    margin-bottom: 1.0rem;
}

.price-original {
    font-size: 1rem;
    color: var(--text-color-light);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.plan-button {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button.current {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    cursor: not-allowed;
}

.plan-button.primary {
    background: var(--primary-color);
    border: 1px solid white;

    color: white;
}

.plan-button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.plan-button.outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.plan-button.outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Feature Comparison Table */
.comparison-table {
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 表头样式 */
.feature-table-header {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.feature-table-header .feature-name {
    display: flex;
    align-items: center;
}

.feature-table-header .feature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-header-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


.feature-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-category:last-child {
    border-bottom: none;
}

.category-header {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(30, 30, 30, 0.8) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.category-title {
    font-size: 1.0rem;
    font-weight: 500;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 1.0rem;
}

.feature-rows {
    padding: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.feature-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-text {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
}

.feature-tooltip {
    color: var(--text-color-light);
    font-size: 0.8rem;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.feature-tooltip:hover {
    opacity: 1;
    color: var(--primary-color);
}

.feature-value-cell {
    text-align: center;
    padding: 0.5rem;
}

.feature-check {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-cross {
    color: var(--text-color-light);
    opacity: 0.5;
    font-size: 1rem;
}

.feature-value {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
}

.feature-addon {
    font-size: 0.85rem;
    color: var(--text-color-light);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Custom Tooltip */
.custom-tooltip {
    position: fixed;
    background: var(--dark-bg);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 300px;
    min-width: max-content;
    line-height: 1.3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    white-space: normal;
    word-wrap: break-word;
}

/* FAQ Section Styles */
.pricing-faq {
    padding: var(--section-padding);
    background-color: var(--dark-bg);
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 500;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-color);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-color-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-cards {
        gap: 1rem;
    }
    
    .pricing-card {
        width: 280px;
    }
}

/* Disabled button styles */
.plan-button.disabled {
    background: transparent;
    border: 1px solid white;
    color: white;
    cursor: not-allowed;
    transform: none;
}

.plan-button.disabled:hover {
    background: #e0e0e0;
    color: #999;
    transform: none;
    box-shadow: none;
}

/* Toast notification styles */
.toast {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #4CAF50;
    color: white;
}

.toast-error {
    background: #f44336;
    color: white;
}

/* 禁用按钮样式，适用于plan-button、upgrade-btn等 */
.plan-button:disabled,
.plan-button.disabled,
.upgrade-btn:disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    border: 1px solid #e0e0e0 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
}