/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 邮箱链接样式 */
a[data-global-href] {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a[data-global-href]:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 页脚中的邮箱链接特殊样式 */
.footer a[data-global-href] {
    color: #fff;
    text-decoration: underline;
}

.footer a[data-global-href]:hover {
    color: #e2e8f0;
    text-decoration: none;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 语言切换器 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 注销按钮样式 */
.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 10px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 80px 0;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 功能区域 */
.features {
    background: white;
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 定价区域 */
.pricing {
    background: white;
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 20px;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-card {
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card.free {
    background: #f8f9fa;
    border-color: #28a745;
}

.pricing-card.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

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

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* 订阅计划选择 */
.subscription-plans {
    margin-bottom: 30px;
}

.plan-option {
    padding: 15px;
    margin: 10px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
}

.plan-option:hover {
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.plan-option.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35), 0 6px 16px rgba(118, 75, 162, 0.25);
    transform: translateY(-3px) scale(1.03);
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-option.active .plan-name {
    letter-spacing: 0.3px;
}

.plan-option.active .plan-price {
    font-size: 1.65rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.plan-option.active::after {
    content: '\2714'; /* checkmark */
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.6);
}

.plan-duration {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 顶部行：名称 + 促销徽章 */
.plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* 限时促销徽章 */
.promo-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff8a00, #ff3d71);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255, 61, 113, 0.35);
    text-shadow: 0 1px 0 rgba(0,0,0,0.1);
    animation: promoPop 1.2s ease-in-out infinite alternate;
    border: 2px solid rgba(255,255,255,0.85);
}

@keyframes promoPop {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0.4)); }
    100% { transform: translateY(-1px) scale(1.04); filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    color: white;
    opacity: 0.8;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -20px;
    margin-right: -20px;
}

.close:hover {
    color: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.premium {
        transform: none;
    }
    
    .pricing-card.premium:hover {
        transform: translateY(-5px);
    }
    
    .subscription-plans {
        margin-bottom: 20px;
    }
    
    .plan-option {
        padding: 10px;
        margin: 5px 0;
    }
}

/* 多语言支持 */
[data-i18n] {
    transition: opacity 0.3s ease;
}

[data-i18n].loading {
    opacity: 0.5;
} 

.sub-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1;
  border-radius: 10px;
  background: #e6f2ff;
  color: #0b3d5e;
  border: 1px solid #bfe3ff;
  vertical-align: middle
}

/* Logto登录按钮样式 */
.logto-login-container {
    text-align: center;
    margin: 30px 0;
}

.btn-logto {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-logto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-logto:hover::before {
    left: 100%;
}

.btn-logto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-logto:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-logto:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logto-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

/* 响应式Logto按钮 */
@media (max-width: 768px) {
    .btn-logto {
        padding: 14px 24px;
        font-size: 16px;
        max-width: 100%;
    }
    
    .btn-icon {
        font-size: 20px;
    }
    
    .logto-description {
        font-size: 13px;
    }
}

/* 按钮加载状态 */
.btn-logto.loading {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
}

.btn-logto.loading .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* 新增：使用新账号登录按钮样式 */
.btn-logto-new-account {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 15px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-logto-new-account::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-logto-new-account:hover::before {
    left: 100%;
}

.btn-logto-new-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
}

.btn-logto-new-account:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-logto-new-account:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* 响应式新账号按钮 */
@media (max-width: 768px) {
    .btn-logto-new-account {
        padding: 10px 20px;
        font-size: 13px;
        max-width: 100%;
    }
}

/* 新增：模态框右下角小按钮样式 */
.btn-logto-new-account-small {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    z-index: 1001;
    min-width: 70px;
}

/* 确保模态框内容有正确的定位上下文 */
.modal-content {
    position: relative;
}

.btn-logto-new-account-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
}

.btn-logto-new-account-small:active {
    transform: translateY(0);
}

.btn-logto-new-account-small .btn-icon {
    font-size: 12px;
}

.btn-logto-new-account-small .btn-text {
    font-size: 10px;
    white-space: nowrap;
}

/* 响应式小按钮 */
@media (max-width: 768px) {
    .btn-logto-new-account-small {
        bottom: 10px;
        right: 10px;
        padding: 5px 8px;
        font-size: 10px;
        min-width: 60px;
    }
    
    .btn-logto-new-account-small .btn-icon {
        font-size: 11px;
    }
    
    .btn-logto-new-account-small .btn-text {
        font-size: 9px;
    }
}
}

.purchase-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 6px; border-bottom:1px solid #e9ecef; }
.purchase-row:last-child { border-bottom:none; }
.purchase-left { display:flex; align-items:center; gap:8px; min-width:0; }
.purchase-meta { color:#666; font-size:12px; white-space:nowrap; }
.purchase-actions { display:flex; align-items:center; gap:8px; }
.link-mini { font-size:12px; color:#0b5ed7; text-decoration:none; }
.link-mini:hover { text-decoration:underline; }
.pagination-mini { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:6px; font-size:12px; } 
.skeleton-row { position: relative; overflow: hidden; height: 32px; margin:6px 0; border-radius:6px; background: #f2f4f7; }
.skeleton-row::after { content:''; position:absolute; inset:0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%); animation: skel 1.2s infinite; }
@keyframes skel { 0%{ transform: translateX(-100%);} 100%{ transform: translateX(100%);} } 

/* --- 首页定价布局与卡片：横向平铺与动画 --- */
.pricing .plans-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	align-items: stretch;
	justify-content: center;
}
.plan-option {
	flex: 0 0 260px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	cursor: pointer;
}
.plan-option .plan-top { display:flex; align-items:center; justify-content:center; gap:8px; }
.plan-option .plan-name { font-weight: 600; font-size: 16px; color:#111827; text-align:center; }
.plan-option .plan-price { margin-top:8px; font-size:28px; font-weight:700; text-align:center; color:#1f2937; }
.plan-option .plan-duration { margin-top:2px; font-size:12px; color:#6b7280; text-align:center; }
.plan-option .plan-features { margin-top:10px; padding-left:18px; color:#374151; font-size:14px; line-height:1.6; }
.plan-option:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.plan-option.active { border-color:#6366f1; box-shadow: 0 10px 28px rgba(99,102,241,0.18); transform: translateY(-6px); }
.plan-option.active .plan-name { color:#3730a3; }
/* 勾选效果（备选标记）：active 时在顶部左上角小圆点 */
.plan-option.active::before {
	content: "";
	position: absolute;
	width: 10px; height: 10px; border-radius:50%;
	background:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,0.18);
	top: 10px; left: 10px;
}
/* 兼容窄屏：允许换行 */
@media (max-width: 840px) {
	.pricing .plans-row { flex-wrap: wrap; }
	.plan-option { flex: 1 1 calc(50% - 16px); min-width:220px; }
}
@media (max-width: 520px) {
	.plan-option { flex: 1 1 100%; }
} 