/* style.css - 海南星游科技有限公司 */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #e0e0ff;
    --text-secondary: #b0b0d0;
    --accent: #6c63ff;
    --accent-glow: rgba(108, 99, 255, 0.4);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
::selection {
    background: var(--accent);
    color: #fff;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #8b83ff;
    text-shadow: 0 0 8px var(--accent-glow);
}
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}
h3 {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
}
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
li {
    margin-bottom: 0.5rem;
}
img {
    max-width: 100%;
    height: auto;
}
button, .btn {
    cursor: pointer;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-1);
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}
button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}
/* Header & Nav */
header {
    position: relative;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    padding: 0;
}
.nav-links li {
    margin: 0;
}
.nav-links a {
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 1px;
}
.nav-links a:hover::before {
    width: 80%;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(108, 99, 255, 0.1);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.search-box input {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 140px;
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    width: 180px;
}
.search-box button {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}
.menu-toggle {
    display: none;
    background: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    padding: 0.3rem;
    box-shadow: none;
}
.menu-toggle:hover {
    transform: none;
    box-shadow: none;
}
/* Hero */
.hero {
    margin-top: 70px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--gradient-banner);
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, -5%); }
}
.hero-slider {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}
.slide.active {
    display: block;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide h1, .slide h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    -webkit-text-fill-color: #fff;
    background: none;
    color: #fff;
    text-shadow: 0 0 40px rgba(108, 99, 255, 0.3);
}
.slide p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}
.hero-controls {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 1;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.2);
}
/* Main Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
section {
    margin-bottom: 5rem;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFade 0.8s ease forwards;
}
@keyframes sectionFade {
    to { opacity: 1; transform: translateY(0); }
}
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }
section:nth-child(10) { animation-delay: 1s; }
section:nth-child(11) { animation-delay: 1.1s; }
section:nth-child(12) { animation-delay: 1.2s; }
/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.product-item {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}
.product-item:hover::before {
    opacity: 1;
}
.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.2);
}
.product-item h3 {
    margin-top: 0;
}
/* Case Items */
.case-item {
    background: var(--bg-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}
.case-item:hover {
    background: rgba(108, 99, 255, 0.08);
    transform: translateX(5px);
}
/* News Articles */
article {
    background: var(--bg-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}
article:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
article h3 {
    margin-top: 0;
}
article time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}
/* FAQ */
.faq-item {
    background: var(--bg-glass);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
}
.faq-item:hover {
    background: rgba(108, 99, 255, 0.06);
    transform: translateX(4px);
}
.faq-item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    cursor: pointer;
}
.faq-item p {
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease;
}
.faq-item:hover p {
    max-height: 200px;
    margin-top: 0.5rem;
}
/* HowTo */
#howto ol {
    list-style-type: none;
    counter-reset: step;
    padding: 0;
}
#howto ol li {
    counter-increment: step;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    position: relative;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    transition: var(--transition);
}
#howto ol li::before {
    content: counter(step);
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
#howto ol li:hover {
    background: rgba(108, 99, 255, 0.08);
    transform: translateX(4px);
}
/* Contact */
#contact p {
    margin-bottom: 0.4rem;
}
/* Breadcrumb */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
}
.breadcrumb li {
    margin: 0;
}
.breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-secondary);
    opacity: 0.4;
}
.breadcrumb li:last-child::after {
    content: '';
}
.breadcrumb a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.breadcrumb a:hover {
    color: var(--accent);
}
/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--accent);
}
footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}
footer a {
    color: var(--accent);
}
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}
#backToTop:hover {
    transform: translateY(-4px) scale(1.05);
}
/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    .search-box {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .slide h1, .slide h2 {
        font-size: 2rem;
    }
    .slide p {
        font-size: 1rem;
    }
    section {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .breadcrumb {
        gap: 0.3rem;
    }
    #backToTop {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    .slide h1, .slide h2 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .footer-links {
        gap: 0.4rem 1rem;
    }
}
/* Dark mode support (auto) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f5f5fa;
        --bg-secondary: #e8e8f0;
        --bg-card: rgba(255, 255, 255, 0.8);
        --bg-glass: rgba(0, 0, 0, 0.03);
        --text-primary: #1a1a2e;
        --text-secondary: #4a4a6a;
        --gradient-banner: linear-gradient(135deg, #e0e0ff 0%, #c0c0f0 50%, #a0a0e0 100%);
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }
    .slide h1, .slide h2 {
        -webkit-text-fill-color: #1a1a2e;
        color: #1a1a2e;
    }
    .slide p {
        color: #4a4a6a;
    }
    .nav-links a {
        color: #4a4a6a;
    }
    .search-box input {
        border-color: rgba(0, 0, 0, 0.1);
        background: rgba(0, 0, 0, 0.03);
        color: #1a1a2e;
    }
    footer {
        background: var(--bg-secondary);
    }
    .product-item, .case-item, article, .faq-item {
        background: rgba(255, 255, 255, 0.6);
    }
    nav {
        background: rgba(245, 245, 250, 0.8);
    }
}
/* Smooth scroll for section visibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}