/* style.css */
/* --- 基础设置 --- */
:root {
    --primary-color: #2E8B57; /* 蒲公英绿 */
    --accent-color: #1E90FF;  /* 科技蓝 */
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f4f6f8;
    --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }
.section-padding { padding: 80px 0; }

/* --- 标题样式 --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; margin-bottom: 15px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary-color); margin: 10px auto 0; }
.section-header p { color: var(--text-gray); font-size: 16px; }

/* --- 按钮 --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #246e45; }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 10px; }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* --- 导航栏 --- */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
nav { height: 70px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; }
.logo i { margin-right: 8px; font-size: 28px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--primary-color); }
.mobile-toggle { display: none; font-size: 24px; cursor: pointer; }

/* --- Hero 区域 (修改部分) --- */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; min-height: 100vh; display: flex; align-items: center; color: var(--white); margin-top: 0; padding: 100px 0 50px;
}

/* --- Hero 区域布局优化 --- */
.hero-layout {
    display: flex;
    justify-content: space-between; /* 默认左右分布 */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    min-height: 60vh;
    transition: all 0.3s ease;
}
/* 当登录框隐藏时，让左侧文字占据更多空间或居中 (可选优化) */
/* 【关键修复】当登录框未显示时，让 Hero 内容居中 */
.hero-layout:not(.has-login-card) {
    justify-content: center;
}
.hero-layout:not(.has-login-card) .hero-text {
    text-align: center;
    padding-right: 0;
    max-width: 800px; /* 限制最大宽度，防止文字太散 */
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
    margin-bottom: 30px;
}
.hero-text h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.hero-text p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

/* --- 登录卡片样式 --- */
.login-card {
    background: var(--white);
    width: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    color: var(--text-dark);
    flex-shrink: 0;
}

/* 登录卡片容器默认隐藏 */
.login-card-container {
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* 显示时的样式 */
.login-card-container.show-login {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 用户类型切换 (公司/个人) */
.user-type-switch {
    background: #f0f2f5;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.type-radio { display: none; }
.type-label {
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: 0.3s;
    display: flex;
    align-items: center;
}
.type-label i { margin-right: 5px; }
/* 选中状态 */
#type-person:checked + .type-label { background: var(--white); color: var(--primary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
#type-company:checked + .type-label { background: var(--white); color: var(--primary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }


.login-tabs { 
    display: flex; 
    border-bottom: 1px solid #eee; 
    background: #fff;
    position: relative;
    z-index: 10; /* 确保在最上层 */
}

.tab-item { 
    flex: 1; 
    text-align: center; 
    padding: 15px; 
    cursor: pointer; 
    font-size: 14px; 
    color: #999; 
    transition: all 0.3s ease; 
    user-select: none;
    position: relative;
    z-index: 10; /* 确保按钮在上层 */
    background: #fff; /* 必须有背景色，否则某些浏览器可能不响应点击 */
}

.tab-item:hover { 
    color: var(--primary-color); 
    background-color: #f9f9f9;
}

.tab-item.active { 
    color: var(--primary-color); 
    border-bottom: 3px solid var(--primary-color); 
    font-weight: 700; 
    background-color: #fff;
}

/* 确保表单面板不会遮挡 Tab */
.form-pane {
    position: relative;
    z-index: 1;
}

/* 表单区域 */
.login-body { padding: 25px; min-height: 320px; }
.form-pane { display: none; animation: fadeIn 0.3s; }
.form-pane.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.input-group { margin-bottom: 15px; position: relative; }
.input-field { 
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; transition: 0.3s; background: #fafafa; 
}
.input-field:focus { border-color: var(--primary-color); background: #fff; }

.code-row { display: flex; gap: 10px; }
.btn-code { 
    background: #e8f5e9; color: var(--primary-color); border: none; padding: 0 15px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; 
}
.btn-code:disabled { background: #eee; color: #999; cursor: not-allowed; }

.btn-submit { width: 100%; padding: 12px; background: var(--primary-color); color: white; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-submit:hover { background: #246e45; box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3); }

/* 微信扫码样式 */
.wechat-box { text-align: center; padding-top: 10px; }
.qr-placeholder { 
    width: 180px; height: 180px; background: #f0f0f0; margin: 0 auto 15px; border: 1px dashed #ccc; 
    display: flex; align-items: center; justify-content: center; color: #07c160; font-size: 50px; border-radius: 8px;
}
.wechat-tips { font-size: 14px; color: #666; }

/* 隐藏的公司名称输入框 */
#company-name-group { display: none; }

/* --- 业务范围 (Grid布局) --- */
.services { background: var(--bg-light); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s; text-align: center; border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-bottom: 3px solid var(--primary-color); }
.service-icon { width: 70px; height: 70px; background: rgba(46, 139, 87, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary-color); font-size: 32px; }
.service-card h3 { margin-bottom: 15px; font-size: 20px; }
.service-card p { color: var(--text-gray); font-size: 14px; line-height: 1.8; }

/* --- 为什么选择我们 --- */
.features { background: var(--white); }
.feature-list { display: flex; flex-wrap: wrap; justify-content: space-between; }
.feature-item { flex: 1 1 300px; margin: 20px; display: flex; align-items: flex-start; }
.feature-icon { background: var(--primary-color); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; }
.feature-text h4 { margin-bottom: 5px; font-size: 18px; }
.feature-text p { color: var(--text-gray); font-size: 14px; }

/* --- 联系我们 & 表单 --- */
.contact { background: #2c3e50; color: var(--white); }
.contact .section-header h2 { color: var(--white); }
.contact .section-header p { color: #bdc3c7; }
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 50px; }
.contact-info { flex: 1; min-width: 300px; }
.contact-form { flex: 1; min-width: 300px; background: rgba(255,255,255,0.05); padding: 30px; border-radius: 8px; }

.info-row { display: flex; align-items: center; margin-bottom: 25px; }
.info-row i { font-size: 20px; color: var(--primary-color); margin-right: 15px; width: 25px; text-align: center; }
.info-row div h4 { font-size: 16px; margin-bottom: 2px; }
.info-row div p { font-size: 14px; color: #bdc3c7; }

.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 12px; background: rgba(255,255,255,0.1); border: 1px solid #444; color: white; border-radius: 4px; }
.form-control:focus { outline: none; border-color: var(--primary-color); }
select.form-control option { background: #333; }

/* --- Footer --- */
footer { background: #1a252f; color: #7f8c8d; padding: 20px 0; text-align: center; font-size: 14px; }

/* --- 响应式 --- */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); text-align: center; }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; color: var(--text-dark); }
    
    .hero-layout { flex-direction: column; }
    .hero-text { padding-right: 0; text-align: center; margin-bottom: 40px; }
    .hero-text h1 { font-size: 32px; }
    .login-card { width: 100%; }
    
    .contact-wrapper { flex-direction: column; }
}

        /* 【新增】自定义 Toast 提示框样式 */
        #custom-toast {
            z-index: 10001;  /* 确保在模态框 10000 之上 */
            visibility: hidden;
            min-width: 250px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 8px;
            padding: 16px;
            position: fixed;
            z-index: 9999;
            left: 50%;
            top: 30px; /* 距离顶部距离 */
            transform: translateX(-50%);
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            opacity: 0;
            transition: opacity 0.3s, top 0.3s;
        }

        #custom-toast.show {
            visibility: visible;
            opacity: 1;
            top: 50px; /* 出现时稍微下移一点，产生动画感 */
        }
        
        #custom-toast.success {
            background-color: #2E8B57; /* 蒲公英绿 */
        }
        
        #custom-toast.error {
            background-color: #d32f2f; /* 错误红 */
        }


/* --- 【新增】模态框样式 --- */

.modal-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 当添加 show 类时显示 */
.modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* 确保内容区域在显示时有动画 */
.modal-overlay.show .upgrade-modal-content {
    transform: scale(1);
}
.upgrade-comparison.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch; /* 确保卡片高度一致 */
    margin-bottom: 20px;
}

/* 通用卡片样式 */
.comparison-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* 1. 基础版 (个人) */
.comparison-card.basic {
    background: #f9f9f9;
    border-color: #e0e0e0;
}
.comparison-card.basic .card-header {
    color: #666;
}

/* 2. 尊享版 (企业) - 突出显示 */
.comparison-card.premium {
    border: 2px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    transform: scale(1.03);
    z-index: 2;
}
.comparison-card.premium .card-header {
    color: #667eea;
    font-weight: bold;
}

/* 3. 超级尊享版 (至尊) - 金色主题 */
.comparison-card.super-premium {
    border: 2px solid #f1c40f;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.15);
}
.comparison-card.super-premium .card-header {
    color: #d4ac0d;
    font-weight: bold;
}

/* 卡片头部 */
.card-header {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header i {
    font-size: 22px;
}

/* 功能列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* 让列表占据剩余空间，把价格推到底部 */
}

.feature-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
}
.feature-list li:last-child {
    border-bottom: none;
}

/* 图标统一宽度，确保文字对齐 */
.feature-list li i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* 高亮可用项 */
.feature-list li i.highlight {
    color: #2E8B57; /* 蒲公英绿 */
}
.feature-list li i.fa-check-circle {
    color: #ccc; /* 默认灰色勾选 */
}
/* 如果同时有 highlight 类，覆盖颜色 */
.feature-list li i.fa-check-circle.highlight {
    color: #2E8B57;
}

/* 禁用项 */
.feature-list li.disabled {
    color: #bbb;
}
.feature-list li.disabled i {
    color: #ddd;
}

/* 价格区域 */
.price-tag.free {
    margin-top: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2E8B57;
    padding: 10px 0;
}

.price-box {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.old-price {
    display: block;
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.new-price {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #e74c3c; /* 促销红 */
}
.new-price span {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

/* 按钮样式 */
.full-width {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 尊享版按钮 (蓝色) */
.upgrade-btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}
.upgrade-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

/* 超级尊享版按钮 (金色) */
.upgrade-btn-super {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}
.upgrade-btn-super:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* 底部简单按钮 */
.upgrade-actions-footer {
    text-align: center;
    margin-top: 10px;
}
.upgrade-btn-simple {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.upgrade-btn-simple:hover {
    border-color: #999;
    color: #333;
}

/* 推荐标签 */
.target-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
}
.target-badge.gold {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

/* 响应式：手机端变为单列 */
@media (max-width: 768px) {
    .upgrade-comparison.three-cols {
        grid-template-columns: 1fr;
    }
    .comparison-card.premium {
        transform: scale(1);
        margin: 10px 0;
    }
}
/* --- 【新增】钻石升级按钮样式 --- */
.upgrade-section {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 10px 0;
    background: linear-gradient(to right, #f9f9f9, #fff, #f9f9f9);
}

.btn-diamond-upgrade {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 紫罗兰钻石色 */
    /* 如果想要更蓝的钻石色，可以使用下面这行： */
    /* background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); */
    
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* 圆角胶囊形状 */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4); /* 紫色光晕阴影 */
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-diamond-upgrade i {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: pulse-icon 2s infinite;
}

.btn-diamond-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-diamond-upgrade:active {
    transform: translateY(1px);
}

/* 钻石光泽流光动画 */
.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine-effect 3s infinite;
}

@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- 【新增】激活码区域专用样式 --- */
.activity-code-box { margin-top: 20px; width: 100%; }
.btn-free-upgrade { width: 100%; padding: 12px; background: #2E8B57; color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-free-upgrade:hover { background: #246e45; transform: translateY(-2px); }
.hidden-area { display: none; margin-top: 15px; animation: fadeIn 0.3s ease-in-out; }
.action-row { display: flex; gap: 10px; margin-bottom: 5px; }
.custom-input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; background-color: #f9f9f9; transition: border-color 0.3s; }
.custom-input:focus { border-color: #2E8B57; background-color: #fff; }
.custom-input[readonly] { cursor: not-allowed; color: #666; }
.btn-action { padding: 0 20px; border: none; border-radius: 6px; color: white; font-size: 14px; cursor: pointer; transition: opacity 0.3s; white-space: nowrap; min-width: 80px; }
.btn-action:hover { opacity: 0.9; }
.btn-action:disabled { background: #ccc !important; cursor: not-allowed; }
.btn-green { background: #2E8B57; }
.btn-blue { background: #667eea; }
/* 消息提示文字 */
.msg-tip {
    display: block; /* 强制占满一行，实现换行 */
    width: 100%;
    font-size: 12px;
    color: #666;
    min-height: 18px; /* 预留高度，防止内容出现时抖动 */
    margin-bottom: 8px; /* 与下一行的间距 */
    text-align: left;
    padding-left: 2px;
    line-height: 1.4;
}
/* --- 【新增】统一消息容器样式 --- */
.unified-msg-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee; /* 可选：加一条虚线分隔操作区和消息区 */
    display: flex;
    flex-direction: column; /* 确保消息垂直换行排列 */
    gap: 5px; /* 两条消息之间的间距 */
}

/* 确保 msg-tip 在容器内正常显示 */
.unified-msg-container .msg-tip {
    margin-bottom: 0; /* 移除原有的 bottom margin，使用 gap 控制间距 */
}

