/* ✨ shiinazj.top 主页样式 ✨ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #ff6b9d;
    --primary-light: #ffa0c4;
    --secondary: #a855f7;
    --accent: #60a5fa;
    --bg: #0a0618;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text: #e8e0f0;
    --text-muted: #8b7faa;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
}

#stars, #sakura { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#sakura { z-index: 1; }

/* ===== 导航 ===== */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 6, 24, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.nav-icon { font-size: 1.5rem; animation: float 3s ease-in-out infinite; }
.nav-title {
    font-size: 1.3rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 0.5rem; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; padding: 0.4rem 1rem;
    border-radius: 8px; transition: all 0.3s; font-size: 0.9rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-light); background: rgba(255, 107, 157, 0.08); }

/* ===== Hero ===== */
.hero {
    position: relative; z-index: 2;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 8rem 3rem 4rem; gap: 4rem;
}
.hero-content { max-width: 650px; }
.hero-badge {
    display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(255, 107, 157, 0.2); font-size: 0.85rem;
    color: var(--primary-light); margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 1.2rem; }
.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 2; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 1rem; transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4); }
.btn-secondary {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-card-hover); }
.btn-icon { font-size: 1.2rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { text-align: center; }
.stat-num {
    display: block; font-size: 1.8rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* 浮动卡片 */
.hero-visual {
    position: relative; width: 350px; height: 350px; flex-shrink: 0;
}
.floating-card {
    position: absolute; width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); animation: float 4s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.card-1 { top: 20%; left: 30%; animation-delay: 0s; }
.card-2 { top: 5%; right: 15%; animation-delay: 0.5s; }
.card-3 { bottom: 30%; left: 10%; animation-delay: 1s; }
.card-4 { bottom: 10%; right: 25%; animation-delay: 1.5s; }
.card-5 { top: 45%; right: 5%; animation-delay: 2s; }

/* ===== 服务 ===== */
.services, .projects, .contact {
    position: relative; z-index: 2;
    max-width: 1100px; margin: 0 auto; padding: 5rem 2rem;
}
.section-title {
    font-size: 2rem; text-align: center; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; transition: all 0.4s;
    text-decoration: none; color: var(--text); display: block;
}
.service-card:hover {
    transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(168, 85, 247, 0.08);
}
.service-card.featured {
    border-color: rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.06), rgba(168, 85, 247, 0.06));
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.service-link { color: var(--primary); font-size: 0.9rem; font-weight: 500; }

/* ===== 项目 ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: all 0.4s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.project-header {
    height: 120px; display: flex; align-items: center; justify-content: center;
}
.project-icon { font-size: 3rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.project-body { padding: 1.5rem; }
.project-body h3 { margin-bottom: 0.5rem; }
.project-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.project-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.project-tags span {
    padding: 0.2rem 0.7rem; border-radius: 8px; font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-muted);
}
.project-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.project-link.disabled { color: var(--text-muted); cursor: default; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; text-align: center; transition: all 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.contact-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== 页脚 ===== */
.footer {
    position: relative; z-index: 2; text-align: center; padding: 3rem 2rem;
    border-top: 1px solid var(--border); background: rgba(10, 6, 24, 0.5);
}
.footer-logo {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-copy { font-size: 0.8rem !important; margin-top: 1rem !important; }

/* ===== 动画 ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding: 7rem 1.5rem 3rem; gap: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { width: 250px; height: 250px; }
    .floating-card { width: 60px; height: 60px; font-size: 1.8rem; }
    .navbar { padding: 0.8rem 1.5rem; }
    .nav-links { gap: 0.3rem; }
    .nav-links a { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
}
@media (max-width: 600px) {
    .navbar { flex-direction: column; gap: 0.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .services, .projects, .contact { padding: 3rem 1rem; }
    .hero-visual { display: none; }
}
