/**
 * VaultCaddy Additional Components CSS
 * 版本: 1.0.0
 * 用途: Testimonials, Stats, FAQ, Comparison等额外组件样式
 */

/* ============================================================
   TESTIMONIAL COMPONENTS - 客户评价组件
   ============================================================ */

.testimonials {
    padding: var(--space-20) 0;
    background: var(--gray-50);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.testimonial-rating {
    color: var(--secondary-orange);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--gray-900);
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.testimonial-quote {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    font-size: 60px;
    color: var(--primary-blue-100);
    line-height: 1;
    font-family: Georgia, serif;
}

/* ============================================================
   STATS COMPONENTS - 数据统计组件
   ============================================================ */

.stats-section {
    padding: var(--space-16) 0;
    background: var(--gradient-blue);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
}

.stat-number {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-3);
}

.stat-label {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

/* ============================================================
   FAQ COMPONENTS - 常见问题组件
   ============================================================ */

.faq-section {
    padding: var(--space-20) 0;
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-base);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-6);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question::after {
    content: '+';
    font-size: var(--text-3xl);
    color: var(--primary-blue);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* ============================================================
   COMPARISON TABLE - 对比表格组件
   ============================================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-table thead {
    background: var(--gradient-blue);
    color: var(--white);
}

.comparison-table th {
    padding: var(--space-6);
    text-align: left;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.comparison-table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-50);
}

.comparison-table .check {
    color: var(--success);
    font-weight: var(--font-semibold);
}

.comparison-table .cross {
    color: var(--error);
}

.comparison-highlight {
    background: var(--primary-blue-50) !important;
    font-weight: var(--font-bold);
}

/* ============================================================
   LOGO CLOUD - 品牌展示组件
   ============================================================ */

.logo-cloud {
    padding: var(--space-12) 0;
    background: var(--white);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-8);
    align-items: center;
    opacity: 0.6;
}

.logo-grid img {
    width: 100%;
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter var(--transition-base), opacity var(--transition-base);
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================================
   PROCESS STEPS - 流程步骤组件
   ============================================================ */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    position: relative;
}

.process-step {
    text-align: center;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0 auto var(--space-4);
}

.process-step h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.process-step p {
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* 连接线（仅桌面端显示） */
@media (min-width: 768px) {
    .process-step::after {
        content: '→';
        position: absolute;
        right: -40px;
        top: 50%;
        transform: translateY(-50%);
        font-size: var(--text-4xl);
        color: var(--primary-blue);
    }
    
    .process-step:last-child::after {
        display: none;
    }
}

/* ============================================================
   ALERT COMPONENTS - 提示框组件
   ============================================================ */

.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-icon {
    font-size: var(--text-2xl);
}

.alert-success {
    background: var(--success-bg);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    color: var(--warning);
}

.alert-error {
    background: var(--error-bg);
    border-left: 4px solid var(--error);
    color: var(--error);
}

.alert-info {
    background: var(--info-bg);
    border-left: 4px solid var(--info);
    color: var(--info);
}

/* ============================================================
   STICKY CTA BAR - 固定CTA条
   ============================================================ */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-4);
    z-index: var(--z-sticky);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .sticky-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-cta .btn {
        width: 100%;
    }
}

/* ============================================================
   COUNTDOWN TIMER - 倒计时组件
   ============================================================ */

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.countdown-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    min-width: 80px;
}

.countdown-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--primary-blue);
    line-height: 1;
}

.countdown-label {
    font-size: var(--text-xs);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-2);
}

/* ============================================================
   PROGRESS BAR - 进度条组件
   ============================================================ */

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ============================================================
   MODAL - 模态框组件
   ============================================================ */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-modal);
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-3xl);
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ============================================================
   TOOLTIP - 提示框组件
   ============================================================ */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: var(--gray-900);
    color: var(--white);
    text-align: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: var(--text-sm);
    transition: opacity var(--transition-fast);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-900);
}

/* ============================================================
   ANIMATIONS - 动画效果
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn var(--transition-slow);
}

.animate-slideUp {
    animation: slideUp var(--transition-slow);
}

.animate-slideDown {
    animation: slideDown var(--transition-slow);
}

.animate-scaleIn {
    animation: scaleIn var(--transition-slow);
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================================
   UTILITY CLASSES - 额外工具类
   ============================================================ */

.full-width {
    width: 100%;
}

.max-w-full {
    max-width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

.select-none {
    user-select: none;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

