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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* ==================== 导航栏 ==================== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(102, 126, 234, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 9999;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 确保下拉菜单在鼠标移动到子菜单时保持显示 */
.dropdown-menu:hover {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 增加下拉菜单的显示时间，避免鼠标移动过快导致菜单消失 */
.dropdown {
    transition: all 0.3s ease;
}

.dropdown-menu {
    transition: all 0.3s ease;
}

/* 用户信息区域样式 */
.user-info {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

.membership-badge {
    background-color: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.membership-badge:hover {
    background-color: #5a6fd8;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.dropdown-menu li {
    margin: 0;
    gap: 0;
}

.dropdown-menu a {
    padding: 12px 15px;
    white-space: nowrap;
    font-size: 14px;
    transition: background-color 0.2s ease;
    display: block;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
}

/* ==================== Banner区域 ==================== */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.banner-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

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

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

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

/* ==================== 通用区块样式 ==================== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.section-desc {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 16px;
}

/* ==================== 核心服务 ==================== */
.services {
    background: #fff;
}

.tick-demo {
    max-width: 760px;
    margin: 0 auto 36px;
    background: linear-gradient(135deg, #0b1220 0%, #121a2b 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.tick-demo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tick-demo-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.tick-demo-badge {
    font-size: 12px;
    font-weight: 700;
    color: #0b1220;
    background: #52c41a;
    padding: 4px 10px;
    border-radius: 999px;
}

.tick-demo-box {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.tick-demo-box.tick-demo-box-video {
    height: auto;
    overflow: hidden;
}

.tick-demo-box.tick-demo-box-video::before,
.tick-demo-box.tick-demo-box-video::after {
    display: none;
}

.tick-demo-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.tick-demo-box::before,
.tick-demo-box::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 22px;
    z-index: 1;
    pointer-events: none;
}

.tick-demo-box::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(11, 18, 32, 1), rgba(11, 18, 32, 0));
}

.tick-demo-box::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 18, 32, 1), rgba(11, 18, 32, 0));
}

.tick-demo-track {
    padding: 10px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: tickScroll 10s linear infinite;
    will-change: transform;
}

.tick-demo:hover .tick-demo-track {
    animation-play-state: paused;
}

.tick-demo-row {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: 92px 70px 80px 46px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.tick-demo-foot {
    padding: 12px 16px 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes tickScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== 数据概览 ==================== */
.data-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.preview-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.preview-card h4 {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.preview-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.preview-value.positive {
    color: #52c41a;
}

.preview-value.negative {
    color: #f5222d;
}

.preview-date {
    color: #999;
    font-size: 12px;
}

/* ==================== 会员价格 ==================== */
.pricing {
    background: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

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

.pricing-card.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.03);
    z-index: 1;
}

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

.popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.price {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.price span {
    font-size: 16px;
    font-weight: normal;
}

.save {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing-card.popular .features li {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* ==================== 定制报表 ==================== */
.custom-reports {
    background: #f8f9fa;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.report-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.report-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.report-price {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.report-card p {
    color: #666;
    font-size: 14px;
}

/* ==================== 引流工具 ==================== */
.tools {
    background: #fff;
}

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

.tool-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

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

.tool-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tool-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* ==================== 核心优势 ==================== */
.advantages {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.advantages .section-title {
    color: #fff;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.advantage-item p {
    opacity: 0.9;
    font-size: 14px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.visit-stats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.4;
}

.visit-stats .visit-sep {
    color: rgba(255, 255, 255, 0.35);
}

.visit-stats .visit-num {
    color: #ff4d4f;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.visit-stats .visit-time {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.disclaimer {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* ==================== 数据看板专用样式 ==================== */
.dashboard-container {
    padding: 20px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.chart-container {
    height: 300px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.positive {
    color: #52c41a;
}

.negative {
    color: #f5222d;
}

/* ==================== 会员中心样式 ==================== */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
}

/* ==================== 关于页面样式 ==================== */
.about-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-content h3 {
    color: #333;
    margin: 30px 0 15px;
    font-size: 20px;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-content ul {
    margin-left: 20px;
    color: #666;
}

.about-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}
