/* 萤火记官网样式 */

/* 基础重置和变量 */
:root {
    --primary-color: #FFA726;
    --primary-dark: #FF8F00;
    --secondary-color: #FFE082;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: rgba(26, 14, 61, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: rgba(255, 167, 38, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 167, 38, 0.3);
    --gradient-primary: linear-gradient(135deg, #FFA726 0%, #FF8F00 100%);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* 萤火虫背景效果 */
.fireflies-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-color), 0 0 12px var(--secondary-color);
    animation: fireflyFloat 8s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes fireflyFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }

    50% {
        transform: translateY(-15px) translateX(-25px);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-40px) translateX(10px);
        opacity: 1;
    }
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--secondary-color);
        transform: scale(1.05);
    }
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-bg);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: orbFloat 6s ease-in-out infinite;
}

.glow-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: 30%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-main {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 12px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 167, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
    justify-content: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    font-variant-numeric: tabular-nums;
    min-width: 120px;
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: 30px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 14px;
    animation: messageSlide 0.5s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-message.user {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.ai {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

/* 功能特色区域 */
.features {
    padding: 120px 0;
    background: #111;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 167, 38, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 167, 38, 0.5);
    box-shadow: 0 20px 40px rgba(255, 167, 38, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 167, 38, 0.5));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-demo {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.demo-conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-message {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    max-width: 80%;
}

.demo-message.user {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    align-self: flex-end;
}

.demo-message.ai {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
}

.feature-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 167, 38, 0.2);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

/* 使用场景区域 */
.scenarios {
    padding: 120px 0;
    background: var(--bg-dark);
}

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

.scenario-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.scenario-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 167, 38, 0.5);
    box-shadow: 0 20px 40px rgba(255, 167, 38, 0.2);
}

.scenario-avatar {
    font-size: 4rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 167, 38, 0.3));
}

.scenario-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.scenario-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.scenario-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenario-features li {
    color: var(--primary-color);
    padding: 12px 20px;
    background: rgba(255, 167, 38, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 167, 38, 0.2);
    font-weight: 500;
    transition: all 0.3s ease;
}

.scenario-features li:hover {
    background: rgba(255, 167, 38, 0.2);
    transform: translateX(5px);
}

/* 下载体验区域 */
.download {
    padding: 120px 0;
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    position: relative;
}

.download-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-check {
    color: #4CAF50;
    font-size: 1.3rem;
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--text-primary);
    border-radius: 16px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-placeholder {
    font-size: 3rem;
    color: var(--bg-dark);
}

.qr-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 页脚 */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    font-size: 28px;
}

.footer-logo .logo-text h3 {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--primary-color);
}

.footer-list li {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.admin-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: 24px;
    border: 2px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-qr {
    width: 220px;
    height: 220px;
    background: var(--text-primary);
    border-radius: 16px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qr-placeholder {
    font-size: 4rem;
    color: var(--bg-dark);
}

.modal-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .download-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .feature-card,
    .scenario-card {
        padding: 30px 20px;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 加载动画 */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}