/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0a0e27;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover, a:focus {
    color: #ffe866;
}
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
ul, ol {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 0.5rem;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
}
h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 0.75rem;
    color: #ffd700;
}
p {
    margin-bottom: 1rem;
    color: #c0c4d0;
}
section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0e27;
}
::-webkit-scrollbar-thumb {
    background: #2a2f4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3f5e;
}
/* ===== Header / Nav ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    transition: background 0.3s ease;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.03);
    color: #ffe866;
}
.nav-list {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-list a {
    font-size: 0.95rem;
    color: #c0c4d0;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}
.nav-list a:hover {
    color: #ffd700;
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ffd700;
    padding: 0.2rem;
    transition: transform 0.3s ease;
}
.menu-toggle:hover {
    transform: rotate(90deg);
}
/* ===== Hero ===== */
#home {
    padding-top: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    width: 100%;
}
.hero-content {
    flex: 1 1 45%;
    min-width: 280px;
    animation: fadeInUp 0.8s ease both;
}
.hero-content h1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 50%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #b0b4c8;
    max-width: 520px;
}
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #f0a500);
    color: #0a0e27;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
    border: none;
    letter-spacing: 0.03em;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffe033, #f0a500);
    color: #0a0e27;
}
.hero-visual {
    flex: 1 1 45%;
    min-width: 280px;
    animation: fadeInUp 0.8s ease 0.2s both;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1f4e, #0a0e27);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}
.hero-visual:hover {
    transform: scale(1.01);
}
.hero-visual svg {
    width: 100%;
    height: auto;
    display: block;
}
/* ===== Brand Grid ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}
.brand-grid article {
    background: rgba(26, 31, 78, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.brand-grid article:nth-child(1) { animation-delay: 0.1s; }
.brand-grid article:nth-child(2) { animation-delay: 0.2s; }
.brand-grid article:nth-child(3) { animation-delay: 0.3s; }
.brand-grid article:nth-child(4) { animation-delay: 0.4s; }
.brand-grid article:nth-child(5) { animation-delay: 0.5s; }
.brand-grid article:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.1);
    background: rgba(26, 31, 78, 0.8);
}
/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}
.products-grid article {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.products-grid article:nth-child(1) { animation-delay: 0.1s; }
.products-grid article:nth-child(2) { animation-delay: 0.2s; }
.products-grid article:nth-child(3) { animation-delay: 0.3s; }
.products-grid article:nth-child(4) { animation-delay: 0.4s; }
.products-grid article:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 16px 45px rgba(255, 215, 0, 0.12);
    background: rgba(26, 31, 78, 0.75);
}
.products-grid svg {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    transition: transform 0.4s ease;
}
.products-grid article:hover svg {
    transform: scale(1.05);
}
/* ===== Service Grid ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}
.service-grid article {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.service-grid article:nth-child(1) { animation-delay: 0.1s; }
.service-grid article:nth-child(2) { animation-delay: 0.2s; }
.service-grid article:nth-child(3) { animation-delay: 0.3s; }
.service-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.08);
}
/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}
.news-grid article {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.news-grid article:nth-child(1) { animation-delay: 0.05s; }
.news-grid article:nth-child(2) { animation-delay: 0.1s; }
.news-grid article:nth-child(3) { animation-delay: 0.15s; }
.news-grid article:nth-child(4) { animation-delay: 0.2s; }
.news-grid article:nth-child(5) { animation-delay: 0.25s; }
.news-grid article:nth-child(6) { animation-delay: 0.3s; }
.news-grid article:nth-child(7) { animation-delay: 0.35s; }
.news-grid article:nth-child(8) { animation-delay: 0.4s; }
.news-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.06);
    background: rgba(26, 31, 78, 0.7);
}
.news-grid time {
    color: #ffd700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}
.news-grid a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #ffd700;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.news-grid a:hover {
    border-bottom-color: #ffd700;
    color: #ffe866;
}
/* ===== Cases Grid ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}
.cases-grid article {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.cases-grid article:nth-child(1) { animation-delay: 0.1s; }
.cases-grid article:nth-child(2) { animation-delay: 0.2s; }
.cases-grid article:nth-child(3) { animation-delay: 0.3s; }
.cases-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.08);
}
.cases-grid svg {
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}
.cases-grid article:hover svg {
    transform: scale(1.02);
}
/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
}
.contact-grid article {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.contact-grid article:nth-child(1) { animation-delay: 0.1s; }
.contact-grid article:nth-child(2) { animation-delay: 0.2s; }
.contact-grid article:nth-child(3) { animation-delay: 0.3s; }
.contact-grid article:nth-child(4) { animation-delay: 0.4s; }
.contact-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.2);
}
.contact-grid p {
    font-size: 1.05rem;
    color: #e0e0e0;
}
/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
details {
    background: rgba(26, 31, 78, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 0.2rem 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}
details[open] {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(26, 31, 78, 0.6);
}
summary {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 0;
    cursor: pointer;
    color: #e0e0e0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #ffd700;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}
details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
details[open] summary {
    color: #ffd700;
}
details p {
    padding: 0 0 1.2rem 0;
    color: #b0b4c8;
}
/* ===== HowTo ===== */
.howto-content {
    background: rgba(26, 31, 78, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}
.howto-content h3 {
    color: #ffd700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.howto-content h3:first-child {
    margin-top: 0;
}
.howto-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #c0c4d0;
}
.howto-content ol li {
    margin-bottom: 0.4rem;
}
/* ===== Aside ===== */
aside {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
aside h2 {
    margin-bottom: 1.5rem;
}
aside ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
aside ul li a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    color: #c0c4d0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
aside ul li a:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
}
/* ===== Footer ===== */
footer {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffd700;
}
.footer-grid p, .footer-grid li {
    font-size: 0.9rem;
    color: #a0a4b8;
    margin-bottom: 0.4rem;
}
.footer-grid ul li a {
    color: #a0a4b8;
    transition: color 0.3s ease;
}
.footer-grid ul li a:hover {
    color: #ffd700;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.08);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: #707488;
    margin: 0;
}
/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== Scroll-triggered animation support (using Intersection Observer fallback) ===== */
/* All cards already have initial hidden state via animation, they'll play on load.
   For scroll-based reveal, we rely on the intersection observer in JS (if any),
   but CSS provides the base. We use a simple class for additional scroll effects. */
.fade-in-view {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-view.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
    header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        gap: 0;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    .nav-list a {
        display: block;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    }
    .nav-list a::after {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    section {
        padding: 3rem 1rem;
    }
    .brand-grid, .products-grid, .service-grid, .news-grid, .cases-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .btn-primary {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    aside ul {
        flex-direction: column;
        align-items: center;
    }
}
/* ===== Dark mode (already dark, but ensure proper contrast) ===== */
@media (prefers-color-scheme: light) {
    /* Force dark theme regardless of system preference */
    body {
        background: #0a0e27;
        color: #e0e0e0;
    }
}
/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* ===== Performance: will-change hints ===== */
.hero-visual, .brand-grid article, .products-grid article, .service-grid article, .news-grid article, .cases-grid article, .contact-grid article {
    will-change: transform, opacity;
}
/* ===== Smooth hover for all interactive ===== */
a, button, .btn-primary, .logo, .menu-toggle, details, summary, aside ul li a {
    -webkit-tap-highlight-color: transparent;
}
/* ===== Focus visible ===== */
:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    border-radius: 4px;
}
/* ===== End ===== */