body {
    margin: 0;
    font-family: "Segoe UI", Arial;
    background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
    color: #1f2937;
}

/* ===== 导航 ===== */
.nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-left {
    position: absolute;
    left: 20px;
}

.home-btn {
    background: #111827;
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
}

.nav-center {
    display: flex;
    gap: 20px;
}

.nav-btn {
    padding: 8px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    text-decoration: none;
    color: #374151;
    transition: 0.25s;
}

.nav-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-right {
    position: absolute;
    right: 20px;
}

.create-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

/* ===== 容器 ===== */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 30px;
}

/* ===== 卡片 ===== */
.card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ===== hero ===== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hero img {
    width: 200px;
}

/* ===== 标题 ===== */
.main-title {
    font-size: 34px;
    font-weight: bold;
    background: linear-gradient(90deg, #111827, #4f46e5);
    -webkit-background-clip: text;
    color: transparent;
}

.sub-title {
    margin-top: 10px;
    font-size: 16px;
    color: #6b7280;
}

.trust {
    margin-top: 8px;
    color: #9ca3af;
}

/* ===== CTA按钮 ===== */
.cta-btn {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    cursor: pointer;
}

/* ===== 功能区 ===== */
.section-title {
    margin-bottom: 15px;
}

.feature {
    margin-top: 18px;
}

.feature-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.feature-desc {
    margin-top: 6px;
    color: #6b7280;
}

/* ===== ⭐ 星星（黑描边加强版） ===== */

.stars {
    display: inline-flex;
    gap: 8px;
}

.star {
    width: 24px;
    height: 24px;
    display: inline-block;

    background: #facc15; /* 纯黄更清晰 */

    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 
        68% 57%, 79% 91%, 
        50% 70%, 21% 91%, 
        32% 57%, 2% 35%, 
        39% 35%
    );

    /* 👉 核心：黑色描边（非常明显） */
    border: 2px solid #000;

    /* 轻微动效 */
    animation: starPop 1.4s ease-in-out infinite;
}

.s1 { animation-delay: 0s; }
.s2 { animation-delay: 0.2s; }
.s3 { animation-delay: 0.4s; }
.s4 { animation-delay: 0.6s; }
.s5 { animation-delay: 0.8s; }

@keyframes starPop {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== 输入框（保持原高级感） ===== */

textarea, input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    box-sizing: border-box;
    background: #f9fafb;
    transition: 0.2s;
}

textarea:focus, input:focus {
    outline: none;
    border: 1px solid #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
/* ===== 趋势模块 ===== */
.trend-card {
    margin-top: 30px;
}

.trend-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 图表 */
#trendChart {
    width: 100%;
    max-width: 500px;
}

/* 右侧 */
.trend-info {
    text-align: center;
}

.trend-info img {
    width: 120px;
    margin-top: 10px;
}

.trend-text {
    color: #6b7280;
}
/* ===== 对比模块 ===== */
.compare-wrap {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.compare-box {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.compare-box img {
    width: 80px;
    margin: 10px 0;
}

.compare-box ul {
    text-align: left;
    margin-top: 10px;
    color: #374151;
}

.bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.good {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}
/* 登录弹窗 */
.login-modal {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
}

.login-box {
    background:#fff;
    padding:30px;
    border-radius:12px;
    width:320px;
}

.login-box input {
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border:1px solid #ddd;
    border-radius:6px;
}

.login-actions {
    display:flex;
    gap:10px;
}

.login-btn {
    flex:1;
    background:#111827;
    color:#fff;
    border:none;
    padding:10px;
    border-radius:6px;
}

.cancel-btn {
    flex:1;
    background:#e5e7eb;
    border:none;
    padding:10px;
    border-radius:6px;
}


/* ===== 顶部导航统一蓝黑悬停/选中：不加粗 ===== */
.nav-btn,
.nav .home-btn,
.topnav a,
.nav a{
    font-weight:500 !important;
}

.nav-btn:hover,
.nav-btn.active,
.nav .home-btn:hover,
.nav .home-btn.active,
.topnav a:hover,
.topnav a.active,
.nav a:hover,
.nav a.active{
    background:linear-gradient(135deg,#0f172a,#334155) !important;
    color:#ffffff !important;
    font-weight:500 !important;
    box-shadow:0 10px 24px rgba(15,23,42,.18) !important;
}

.nav-btn:hover *,
.nav-btn.active *,
.nav .home-btn:hover *,
.nav .home-btn.active *,
.topnav a:hover *,
.topnav a.active *,
.nav a:hover *,
.nav a.active *{
    color:#ffffff !important;
    font-weight:500 !important;
}
