/* 在CSS顶部添加 */
#subscription-modal {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: -1;
}

#subscription-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

/* 订阅模态框样式 */
.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.subscription-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subscription-modal-container {
    width: 1083px;
    height: 673px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.subscription-modal-overlay.active .subscription-modal-container {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.subscription-content {
    display: flex;
    height: 100%;
}

/* 左侧功能对比 */
.features-comparison {
    width: 50%;
    padding: 32px;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.features-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.empty-cell {
    width: 60%;
}

.plan-title {
    width: 20%;
    text-align: center;
    font-weight: 600;
    color: #111827;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.feature-name {
    width: 60%;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

.feature-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.feature-availability {
    width: 20%;
    display: flex;
    justify-content: center;
}

.feature-availability.available svg {
    color: #10A37F;
}

.feature-availability.disabled svg {
    color: #d1d5db;
}

.plan-link {
    margin-top: 32px;
    text-align: center;
}

.plan-link a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.plan-link a:hover {
    text-decoration: underline;
}

/* 用户评价区域样式 */
.user-testimonial {
    margin-top: 20px;
    padding: 0;
}

.testimonial-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.3;
    font-style: italic;
    margin-bottom: 5px;
}

.testimonial-author-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.testimonial-author {
    font-size: 12px;
    color: #6b7280;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

/* 右侧订阅选项 */
.subscription-plans {
    width: 50%;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

/* 限时特惠横幅 */
.limited-time-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #FFCDD2, #FFEEF0);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 5px 0 15px;
}

.offer-content {
    display: flex;
    align-items: center;
}

.offer-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.offer-icon svg {
    fill: #FF6B6B;
    width: 24px;
    height: 24px;
}

.offer-text {
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-weight: 600;
    font-size: 14px;
    color: #d32f2f;
}

.offer-description {
    font-size: 12px;
    color: #e53935;
}

.offer-timer {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.offer-timer svg {
    margin-right: 5px;
    stroke: #d32f2f;
}

#offer-countdown, #offer-countdown-mobile {
    font-weight: 600;
    font-size: 13px;
    color: #d32f2f;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
}

.logo-icon {
    margin-right: 8px;
    display: flex;
}

.upgrade-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.star-icon {
    margin-left: 8px;
    font-size: 24px;
}

.subscription-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.subscription-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.subscription-option:hover {
    border-color: #10A37F;
    background-color: #f0fdf4;
}

.subscription-option.active {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.option-info {
    display: flex;
    flex-direction: column;
}

.option-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.discount-tag {
    margin-left: 8px;
    font-size: 12px;
    background-color: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 5px;
    display: inline-block;
}

.option-price {
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.daily-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.continue-btn {
    padding: 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.continue-btn:hover {
    background-color: #266cb6;
}

/* 移除支付区域相关样式 */
.payment-info {
    display: none; /* 完全隐藏支付信息区域 */
}

.security-badge {
    display: none; /* 隐藏安全徽章 */
}

.payment-methods {
    display: none; /* 隐藏支付方式图标 */
}

/* 添加新的支付区域样式 */
.payment-footer {
    margin-top: 5px; /* 减少顶部边距，压缩空间 */
    padding: 0; /* 移除内边距 */
    background-color: transparent; /* 移除背景色 */
    border-radius: 0; /* 移除边框圆角 */
    text-align: center;
    border: none; /* 确保没有边框 */
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 12px; /* 缩小字体 */
    margin-bottom: 5px; /* 减少底部间距 */
}

.security-icon {
    margin-right: 8px;
    color: #6b7280;
}

.payment-cards {
    display: flex;
    justify-content: center;
    gap: 5px; /* 减少图标间距 */
}

.payment-card-icon {
    height: 20px; /* 减小图标高度 */
    width: auto;
}

/* 为左侧导航栏添加的样式 */
.hot-tag {
    position: absolute;
    right: 12px;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .subscription-modal-container {
        width: 95%;
        height: 95%;
        max-height: 673px;
    }
    
    .subscription-content {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .features-comparison,
    .subscription-plans {
        width: 100%;
    }
    
    .features-comparison {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 24px;
    }
}

/* 免费次数用尽通知样式 */
.free-limit-notice {
    background-color: #fff8e1;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.free-limit-notice h3 {
    font-weight: 600;
    margin-top: 0;
}

.free-limit-notice p {
    margin-bottom: 0;
    line-height: 1.5;
}

/* 对话次数指示器 */
.chat-count-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: #555;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-count-indicator .count-number {
    font-weight: 600;
    color: #ff5722;
}

.chat-count-indicator .count-icon {
    color: #4caf50;
}

.chat-count-indicator.warning .count-icon {
    color: #ff9800;
}

.chat-count-indicator.danger .count-icon {
    color: #f44336;
}

/* 移动端适配 - 隐藏功能对比部分，只显示订阅计划 */
@media (max-width: 768px) {
    .subscription-modal-container {
        width: 90%;
        max-width: 400px;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
        margin: 0 auto;
    }
    
    .subscription-content {
        flex-direction: column;
    }
    
    .features-comparison {
        display: none !important;
        width: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
    
    .subscription-plans {
        width: 100%;
        padding: 24px 20px;
    }
    
    .upgrade-title {
        text-align: center;
        margin: 0 0 24px 0;
        font-size: 24px;
    }
    
    .subscription-options {
        margin-bottom: 24px;
    }
    
    .brand-logo {
        display: none;
    }
    
    .continue-btn {
        width: 100%;
        padding: 15px;
        margin-top: 5px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .payment-footer {
        margin-top: 16px !important;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
    }
    
    .security-info {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .payment-cards {
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }
    
    .payment-card-icon {
        width: 32px;
        height: 32px;
        margin: 0 5px;
    }
    
    .subscription-option {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .option-name {
        font-size: 16px;
    }
    
    .daily-price {
        font-size: 16px;
        font-weight: 600;
    }
    
    .subscription-option.active {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
        transform: translateY(-2px);
        border-width: 2px;
    }
    
    .limited-time-offer {
        padding: 10px 14px;
        margin: 8px 0 15px;
        background: linear-gradient(to right, #FFCDD2, #FFE0E6);
    }
    
    .offer-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .offer-title {
        font-size: 13px;
    }
    
    .offer-description {
        font-size: 11px;
    }
    
    .offer-timer {
        padding: 4px 8px;
        border-radius: 16px;
    }
    
    #offer-countdown-mobile {
        font-size: 12px;
    }
    
    .option-tag {
        top: -8px;
        right: 8px;
        font-size: 11px;
        padding: 1px 6px;
    }
    
    .option-price {
        font-size: 13px;
        display: flex;
        align-items: center;
        margin-bottom: 2px;
    }
    
    .original-price {
        font-size: 0.9em;
        margin-right: 4px;
    }
}

/* 订阅选项标签 */
.option-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.option-tag.popular {
    background-color: #4a90e2; /* 更柔和的蓝色 */
}

.option-tag.best-value {
    background-color: #ff6b6b; /* 与限时特惠图标相匹配的红色 */
}

/* 新增：漂亮的试用胶囊标签样式 */
.trial-badge {
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px; /* 胶囊形状 */
    background-color: #e0f2fe; /* 淡天蓝色背景 */
    color: #0c4a6e; /* 深天蓝色文字 */
    border: 1px solid #bae6fd; /* 略深的边框增加质感 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 默认隐藏手机版标签 */
.mobile-only {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 在移动端隐藏桌面版标签，显示手机版标签 */
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: inline-block;
    }

    /* 允许方案名称和标签换行 */
    .option-name {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px; /* 标签和名称之间的间距 */
    }

    .subscription-modal-container {
        width: 90%;
        max-width: 400px;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
        margin: 0 auto;
    }
    
    .subscription-content {
        flex-direction: column;
    }
    
    .features-comparison {
        display: none !important;
        width: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
    
    .subscription-plans {
        width: 100%;
        padding: 24px 20px;
    }
    
    .upgrade-title {
        text-align: center;
        margin: 0 0 24px 0;
        font-size: 24px;
    }
    
    .subscription-options {
        margin-bottom: 24px;
    }
    
    .brand-logo {
        display: none;
    }
    
    .continue-btn {
        width: 100%;
        padding: 15px;
        margin-top: 5px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .payment-footer {
        margin-top: 16px !important;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
    }
    
    .security-info {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .payment-cards {
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }
    
    .payment-card-icon {
        width: 32px;
        height: 32px;
        margin: 0 5px;
    }
    
    .subscription-option {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .option-name {
        font-size: 16px;
    }
    
    .daily-price {
        font-size: 16px;
        font-weight: 600;
    }
    
    .subscription-option.active {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
        transform: translateY(-2px);
        border-width: 2px;
    }
    
    .limited-time-offer {
        padding: 10px 14px;
        margin: 8px 0 15px;
        background: linear-gradient(to right, #FFCDD2, #FFE0E6);
    }
    
    .offer-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .offer-title {
        font-size: 13px;
    }
    
    .offer-description {
        font-size: 11px;
    }
    
    .offer-timer {
        padding: 4px 8px;
        border-radius: 16px;
    }
    
    #offer-countdown-mobile {
        font-size: 12px;
    }
    
    .option-tag {
        top: -8px;
        right: 8px;
        font-size: 11px;
        padding: 1px 6px;
    }
    
    .option-price {
        font-size: 13px;
        display: flex;
        align-items: center;
        margin-bottom: 2px;
    }
    
    .original-price {
        font-size: 0.9em;
        margin-right: 4px;
    }
} 