/* ===========================================
   Storii AI辅助写作工具站 - 全局样式
   风格：深色科技极简风，对标CodeBuddy
   =========================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调配置 */
    --color-bg-primary: #0F1118;      /* 深黑底色 */
    --color-bg-secondary: #1A1D29;    /* 卡片底色 */
    --color-bg-tertiary: #242836;     /* 输入框/按钮底色 */
    --color-accent: #06B6D4;          /* 科技青蓝主高亮色 */
    --color-accent-hover: #0891B2;    /* hover状态 */
    --color-text-primary: #FFFFFF;     /* 主文字 */
    --color-text-secondary: #9CA3AF;  /* 次要文字 */
    --color-text-muted: #6B7280;      /* 暗淡文字 */
    --color-border: #2D333B;          /* 边框色 */
    --color-success: #10B981;         /* 成功色 */
    --color-warning: #F59E0B;         /* 警告色 */
    --color-error: #EF4444;           /* 错误色 */
    
    /* 渐变 */
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
    
    /* 阴影 */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(6, 182, 212, 0.15);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.3);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 17, 24, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-primary);
}

.navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.navbar-brand span {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav a:hover {
    color: var(--color-accent);
}

.navbar-nav a.active {
    color: var(--color-accent);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
    border-color: var(--color-accent);
}

.btn-download {
    padding: 12px 24px;
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* 毛玻璃卡片 */
.card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

/* 高亮卡片（主推套餐） */
.card-highlight {
    border: 2px solid var(--color-accent);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.card-highlight::before {
    opacity: 1;
}

.card-highlight::after {
    content: '推荐';
    position: absolute;
    top: -1px;
    right: 30px;
    background: var(--gradient-accent);
    color: white;
    padding: 4px 14px;
    border-radius: 0 0 6px 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 30px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0F1118 0%, #1A1D29 50%, #0F1118 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 .gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-visual {
    position: relative;
}

.hero-slides {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}



/* 功能卡片区域 */
.features {
    padding: 80px 30px;
    background: var(--color-bg-primary);
}

.features .container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* 定价区域 */
.pricing {
    padding: 80px 30px;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.pricing .container {
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.pricing-card {
    text-align: center;
    padding: 36px 24px;
    position: relative;
}

.pricing-card .price {
    margin-bottom: 24px;
}

.pricing-card .price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.pricing-card .price .period {
    font-size: 14px;
    color: var(--color-text-muted);
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-card .features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-card .features-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .features-list li .check {
    color: var(--color-success);
}

.pricing-card .features-list li .cross {
    color: var(--color-text-muted);
}

.pricing-card button {
    width: 100%;
}

.pricing-card.free .amount {
    color: var(--color-accent);
}

/* 下载区域 */
.download {
    padding: 80px 30px;
    background: var(--color-bg-primary);
}

.download .container {
    max-width: 1400px;
    margin: 0 auto;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px;
}

.download-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-info p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.download-info .version {
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

/* 页脚 */
.footer {
    padding: 60px 30px 30px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
}

.footer-brand span {
    font-size: 18px;
    font-weight: 700;
}

.footer-col p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 登录/注册页面 */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--color-bg-primary);
}

.auth-card {
    max-width: 420px;
    width: 100%;
    padding: 48px;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .logo img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.auth-card .logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input {
    padding: 14px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.auth-card button {
    width: 100%;
    margin-top: 10px;
}

.auth-card .link-row {
    text-align: center;
    margin-top: 24px;
}

.auth-card .link-row a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-card .link-row a:hover {
    color: var(--color-accent-hover);
}

/* 个人中心页面 */
.member-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--color-bg-primary);
}

.member-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.member-header {
    margin-bottom: 40px;
}

.member-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-header p {
    color: var(--color-text-secondary);
}

.user-info {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.user-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-details p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.section-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.tab-item {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.tab-content {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
}

/* 会员状态卡片 */
.vip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vip-card {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 4px solid var(--color-accent);
}

.vip-card .product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.vip-card .vip-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vip-card .vip-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vip-card .vip-badge.free {
    background: rgba(107, 114, 128, 0.2);
    color: var(--color-text-secondary);
}

.vip-card .vip-badge.monthly {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.vip-card .vip-badge.quarterly {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.vip-card .vip-badge.yearly {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
}

.vip-card .vip-badge.lifetime {
    background: rgba(6, 182, 212, 0.2);
    color: var(--color-accent);
}

.vip-card .expire-time {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.vip-card .expire-time.permanent {
    color: var(--color-accent);
}

/* 订单列表 */
.order-list {
    list-style: none;
}

.order-item {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.order-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

.order-status.paid {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.order-status.unpaid {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.order-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.order-item-tag {
    padding: 4px 10px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* 安全设置 */
.security-section {
    max-width: 600px;
}

.security-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.security-section .form-group {
    margin-bottom: 20px;
}

.security-section button {
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card {
        grid-column: span 1;
    }
    
    .card-highlight {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .card-highlight {
        grid-column: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Toast消息提示 */
.toast {
    position: fixed;
    top: 90px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.toast.warning {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

/* 付款弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-card);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.modal-body {
    padding: 24px;
}

.payment-info {
    margin-bottom: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-label {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.payment-value {
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
}

.payment-total {
    border-top: 2px solid var(--color-border);
    margin-top: 8px;
    padding-top: 16px;
}

.payment-amount {
    color: var(--color-accent);
    font-size: 20px;
    font-weight: 700;
}

.payment-balance {
    margin-top: 12px;
    padding: 12px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
}

.payment-balance .payment-label {
    color: var(--color-text-muted);
    font-size: 13px;
}

.payment-balance .payment-value {
    color: var(--color-success);
    font-weight: 600;
}

.payment-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-size: 13px;
}

.payment-tip svg {
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
}

.modal-footer .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-footer .btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
}

.modal-footer .btn-secondary:hover {
    background: var(--color-border);
    color: var(--color-text-primary);
}

.modal-footer .btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.modal-footer .btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    border-top-color: var(--color-accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 滑块验证码 ========== */
.captcha-wrap {
    margin: 12px 0;
    user-select: none;
    -webkit-user-select: none;
    max-width: 300px;
}
.captcha-bg-wrap {
    position: relative;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-tertiary);
    width: 300px;
    height: 150px;
}
.captcha-bg-img {
    width: 300px;
    height: 150px;
    display: block;
    border-radius: 8px;
}
.captcha-gap-mark {
    position: absolute;
    top: calc(50 / 150 * 100%);
    height: calc(50 / 150 * 100%);
    width: 50px;
    border: 2px dashed var(--color-accent);
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.22);
    box-shadow: inset 0 0 14px rgba(6, 182, 212, 0.35), 0 0 10px rgba(6, 182, 212, 0.3);
    pointer-events: none;
    z-index: 3;
    box-sizing: border-box;
}
.captcha-slider-track {
    position: relative;
    height: 44px;
    width: 300px;
    background: var(--color-bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.captcha-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: rgba(6,182,212,0.15);
    border-radius: 8px 0 0 8px;
    transition: width 0.05s linear;
}
.captcha-slider-btn {
    position: absolute;
    left: 0;
    top: -1px;
    width: 50px;
    height: 42px;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    color: var(--color-accent);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: border-color 0.2s;
}
.captcha-slider-btn:active {
    cursor: grabbing;
}
.captcha-piece-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    pointer-events: none;
    border-radius: 4px;
}
.captcha-slider-hint {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 13px;
    pointer-events: none;
    transition: opacity 0.2s;
}
.captcha-status {
    margin-top: 6px;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}

/* 后台管理面板中的验证码深色适配 */
.login-container .captcha-bg-img {
    border-radius: 6px;
    border: 1px solid #252836;
}
.login-container .captcha-slider-track {
    background: #0D1117;
    border-color: #2D333B;
}
.login-container .captcha-slider-btn {
    background: #1A1D29;
}
