/* ============================================
   BOROD Website - Blue Theme
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: #080c14;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   Loading Animation
   ============================================ */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #080c14;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 12px;
    color: #fff;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}
.loader-logo span { color: #00d4ff; }
.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    animation: loading 2.2s ease forwards;
}
.loader-text {
    margin-top: 20px;
    font-size: 11px;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes loading {
    to { width: 100%; }
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 0 60px;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6,10,20,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 1px 0 rgba(0,212,255,0.08), 0 4px 30px rgba(0,0,0,0.3);
}
nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.5) 30%, rgba(0,212,255,0.2) 70%, transparent 100%);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-borod {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #fff;
}
.logo-borod span { color: #00d4ff; }
.logo-text {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.45);
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}
.nav-links a {
    position: relative;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 400;
    transition: color 0.3s;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    width: 0; height: 1px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        url("https://borod.cn/images/mold-hero.png") center center / cover no-repeat,
        linear-gradient(180deg, rgba(8,12,20,0.50) 0%, rgba(8,12,20,0.60) 100%);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, #080c14, transparent);
    z-index: 2;
}
.hero-text {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-title-split {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease 2.5s forwards;
    background: linear-gradient(
        90deg,
        #0a1628 0%,
        rgba(10, 22, 40, 0.85) 40%,
        rgba(30, 55, 90, 0.55) 70%,
        rgba(180, 200, 220, 0.18) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.18);
}
.hero-box-full {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: 8px;
    line-height: 1.3;
    color: #fff;
    padding: 12px 24px;
    text-align: center;
}
.hero-subtitle {
    font-size: 24px;
    color: rgba(255,255,255,0.95);
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeInUp 1s ease 2.7s forwards;
    font-weight: 500;
    padding: 12px 24px;
    background: linear-gradient(
        90deg,
        #0a1628 0%,
        rgba(10, 22, 40, 0.80) 60%,
        rgba(20, 40, 70, 0.60) 100%
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.04);
    margin-bottom: 0;
}
.hero-btn {
    padding: 15px 46px;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    background: transparent;
    font-size: 13px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeInUp 1s ease 3.1s forwards;
}
.hero-btn:hover {
    background: #00d4ff;
    color: #080c14;
}

/* ============================================
   Sections
   ============================================ */
section { padding: 110px 60px; }
.section-title {
    text-align: center;
    margin-bottom: 70px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 14px;
}
.section-title p {
    color: rgba(255,255,255,0.35);
    font-size: 13px;
    letter-spacing: 3px;
}
.section-title .line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    margin: 18px auto 0;
}

/* ============================================
   About
   ============================================ */
#about { background: #08111f; }
.about-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    line-height: 2;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}
.about-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
}
.stat-item { text-align: center; }
.stat-item .num {
    font-size: 42px;
    font-weight: 900;
    color: #00d4ff;
    display: block;
}
.stat-item .label {
    font-size: 12px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.service-card {
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 44px 28px;
    text-align: center;
    transition: all 0.35s;
}
.service-card:hover {
    border-color: rgba(0,212,255,0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,212,255,0.08);
}
.service-icon {
    font-size: 36px;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 14px;
}
.service-card p {
    color: rgba(255,255,255,0.38);
    font-size: 13px;
    line-height: 1.9;
}

/* ============================================
   Cases
   ============================================ */
#cases { background: #08111f; }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.case-card {
    height: 230px;
    background: rgba(255,255,255,0.025);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.case-card:hover {
    border-color: rgba(0,212,255,0.4);
    transform: translateY(-4px);
}
.case-card h3 {
    font-size: 15px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.case-card p {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}
.case-card .case-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(0,212,255,0.3);
    font-size: 11px;
    color: #00d4ff;
    letter-spacing: 2px;
}

/* ============================================
   News / Article
   ============================================ */
.article-list {
    max-width: 900px;
    margin: 0 auto;
}
.article-item {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 24px;
    align-items: center;
    transition: all 0.3s;
}
.article-item:hover { padding-left: 10px; }
.article-item .article-date {
    font-size: 12px;
    color: #00d4ff;
    letter-spacing: 2px;
    min-width: 90px;
}
.article-item h3 {
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.article-item p {
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}
.article-item a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Contact
   ============================================ */
.contact-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}
.contact-item {
    padding: 24px;
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.06);
}
.contact-item label {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    color: #00d4ff;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.contact-item span {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 36px 60px;
    text-align: center;
    border-top: 1px solid rgba(0,212,255,0.08);
    color: rgba(255,255,255,0.28);
    font-size: 12px;
    letter-spacing: 2px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    nav { padding: 0 20px; height: 60px; }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(6,10,20,0.97);
        padding: 20px;
        border-bottom: 1px solid rgba(0,212,255,0.1);
    }
    .nav-links a { font-size: 13px; letter-spacing: 2px; }
    section { padding: 80px 20px; }
    .hero {
        justify-content: center;
        padding: 0 20px;
    }
    .hero-text {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 10px;
    }
    .hero-title-split {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 8px;
    }
    .hero-box-full {
        font-size: 22px;
        letter-spacing: 3px;
        padding: 8px 16px;
    }
    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
        padding: 8px 16px;
        margin-bottom: 30px;
    }
    .hero-tag { font-size: 9px; letter-spacing: 3px; margin-bottom: 16px; }
    .hero-btn { padding: 12px 30px; font-size: 11px; }
    .about-stats { flex-direction: column; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
/* ============================================
   Language Switcher
   ============================================ */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-switch span {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}
.lang-switch a {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.lang-switch a.active,
.lang-switch a:hover { color: #00d4ff; }

/* English content - hidden by default */
body:not(.lang-en) .en { display: none; }
body.lang-en .cn { display: none; }
body.lang-en .zh { display: none; }

/* ============================================
   Products
   ============================================ */
#products { background: #080c14; }
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.product-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: all 0.35s;
    cursor: pointer;
}
.product-card:hover {
    border-color: rgba(0,212,255,0.35);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.06);
}
.product-img {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a3050 100%);
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(8,12,20,0.8) 100%);
}
.product-content {
    padding: 36px 32px;
}
.product-content h3 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #fff;
    margin-bottom: 16px;
}
.product-content p {
    color: rgba(255,255,255,0.50);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-tags span {
    padding: 5px 14px;
    border: 1px solid rgba(0,212,255,0.25);
    font-size: 12px;
    color: rgba(0,212,255,0.80);
    letter-spacing: 2px;
}

