/* assets/css/style.css */

/* --- 1. 全局变量定义 (品牌色) --- */
:root {
    --cyb-blue: #0066FF;
    --cyb-blue-dark: #0052cc;
    --cyb-red: #FF3B30;
    --cyb-yellow: #FFCC00;
    --text-main: #333333;
    --text-light: #666666;
    --bg-gray: #F5F7FA;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- 2. 基础重置 --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-gray);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- 3. 导航栏 (Navbar) --- */
.navbar {
    background-color: white;
    padding: 0 40px;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* 吸顶效果 */
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #333;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 36px;
    margin-right: 12px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover { color: var(--cyb-blue); }

/* --- 4. 通用组件 --- */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.card-title {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--cyb-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--cyb-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* --- 5. 状态标签 --- */
.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.tag-blue { color: var(--cyb-blue); background: #e6f7ff; }
.tag-red { color: var(--cyb-red); background: #FFF0F0; }
.tag-green { color: #28a745; background: #e6ffed; }

/* --- 6. 底部 (Footer) --- */
.footer {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 60px;
}
/* --- 7. 首页 (Landing Page) 专用样式 --- */
.hero-box {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F4FF 100%);
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.process-card {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.process-card:hover { transform: translateY(-5px); }
.process-step-1 { border-top-color: var(--cyb-blue); }
.process-step-2 { border-top-color: var(--cyb-red); }
.process-step-3 { border-top-color: var(--cyb-yellow); }

/* --- 8. 登录页 (Login Page) 专用样式 --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* 让它垂直居中 */
}

.login-card {
    background: white;
    padding: 40px;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box; /* 关键：防止输入框撑破容器 */
    transition: border 0.3s;
}

.form-input:focus {
    border-color: var(--cyb-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.login-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* --- 9. 模态框与动画 (Modal & Animation) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* 半透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px); /* 背景模糊，增加高级感 */
}

.upload-card {
    background: white;
    width: 500px;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: popIn 0.3s ease-out;
}

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

/* 进度条容器 */
.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    height: 10px;
    margin: 20px 0;
    overflow: hidden;
}

/* 进度条本身 */
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyb-blue), var(--cyb-yellow));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* 模拟文件上传区域 */
.drop-zone {
    border: 2px dashed #ccc;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-zone:hover {
    border-color: var(--cyb-blue);
    background: #e6f7ff;
}
/* --- 10. 智能推荐与成交 (Recommendation & Success) --- */

/* 推荐角标 */
.recommend-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg, #FFCC00, #FF9500);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 166, 0, 0.4);
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* 支付/成功弹窗 */
.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
    animation: popIn 0.5s;
}

.policy-paper {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #555;
    background-image: radial-gradient(#f0f0f0 1px, transparent 1px);
    background-size: 10px 10px;
}