/* ============================================
   werights.xqt.cn — Global IP Rights Services
   Color: Deep Blue + Gold accent + Clean White
   ============================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-900: #0a1628;
    --blue-800: #0f1f3d;
    --blue-700: #152d5a;
    --blue-600: #1a3d7a;
    --blue-500: #2a5fb4;
    --blue-400: #3b82f6;
    --gold: #d4a843;
    --gold-light: #e8c76a;
    --gold-dark: #b8922e;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --gray-100: #eef0f4;
    --gray-200: #dde0e7;
    --gray-400: #8b95a5;
    --gray-600: #5a6577;
    --gray-800: #2c3648;
    --text: #1a1f2e;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.12);
    --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--blue-900);
    color: var(--gray-200);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.top-bar a { color: var(--gold); text-decoration: none; font-weight: 500; }
.top-bar a:hover { color: var(--gold-light); }

/* ===== HEADER ===== */
header {
    background: var(--blue-800);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
    flex-wrap: wrap;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--blue-900);
    letter-spacing: -0.5px;
}
.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}
.logo-text h1 span { color: var(--gold); }
.logo-text .tagline {
    font-size: 12px;
    color: var(--gray-400);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--gray-200);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-links a.nav-cta {
    background: var(--gold);
    color: var(--blue-900);
    font-weight: 700;
    padding: 8px 18px;
}
.nav-links a.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}
.lang-switch a, .lang-switch span.active {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.3px;
}
.lang-switch a {
    color: var(--gray-200);
    background: rgba(255,255,255,0.06);
}
.lang-switch a:hover {
    color: var(--gold);
    background: rgba(212,168,67,0.12);
}
.lang-switch span.active {
    color: var(--gold);
    background: rgba(212,168,67,0.15);
    font-weight: 700;
    cursor: default;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero h2 span { color: var(--gold); }
.hero p {
    font-size: 18px;
    color: var(--gray-200);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--blue-900);
    font-size: 17px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 60px;
    text-decoration: none;
    transition: var(--transition);
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,168,67,0.3); }

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--blue-700);
    padding: 30px 0;
    text-align: center;
}
.trust-bar .container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-200);
    font-size: 15px;
}
.trust-item .icon { font-size: 24px; }

/* ===== SERVICE CARDS ===== */
.services { padding: 80px 0; }
.services h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 12px;
}
.services .subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 50px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    text-align: center;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 10px;
}
.service-card p { color: var(--gray-600); font-size: 14px; line-height: 1.7; }

/* ===== WHY CHOOSE US ===== */
.why-us {
    background: var(--white);
    padding: 80px 0;
}
.why-us h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 50px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.why-item {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.why-item:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(212,168,67,0.1); }
.why-item .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
}
.why-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: 6px;
}
.why-item p { color: var(--gray-600); font-size: 14px; }

/* ===== LATEST ARTICLES ===== */
.latest-articles {
    padding: 80px 0;
    background: var(--off-white);
}
.latest-articles h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 40px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card .tag {
    display: inline-block;
    background: rgba(212,168,67,0.12);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.article-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 8px;
    line-height: 1.4;
}
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: var(--blue-500); }
.article-card p { color: var(--gray-600); font-size: 14px; line-height: 1.6; }
.article-card .meta {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    color: var(--gray-400);
    font-size: 12px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
    text-align: center;
}
.cta-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.cta-section p { color: var(--gray-200); font-size: 16px; margin-bottom: 24px; }
.cta-section .hero-cta { background: var(--gold); color: var(--blue-900); }
.cta-section .hero-cta:hover { background: var(--gold-light); }

/* ===== FOOTER ===== */
footer {
    background: var(--blue-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ===== ARTICLE PAGE ===== */
article.article-page {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 30px 0;
}
article.article-page img.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
}
article.article-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-800);
    margin-bottom: 12px;
    line-height: 1.3;
}
.article-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    color: var(--gray-600);
    font-size: 14px;
    flex-wrap: wrap;
}
article.article-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-700);
    margin: 28px 0 14px;
}
article.article-page p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text);
}
article.article-page ul, article.article-page ol { margin: 12px 0 16px 24px; }
article.article-page li { margin-bottom: 8px; line-height: 1.7; }
article.article-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}
article.article-page td {
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    font-size: 14px;
}
article.article-page td:first-child {
    font-weight: 600;
    background: var(--off-white);
    color: var(--blue-700);
    width: 35%;
}
.breadcrumb {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 16px;
    padding: 8px 0;
}
.breadcrumb a { color: var(--blue-500); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== CTA in article ===== */
.cta-box {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin: 30px 0;
}
.cta-box h3 { font-size: 20px; margin-bottom: 8px; }
.cta-box p { font-size: 14px; color: var(--gray-200) !important; margin-bottom: 16px; }
.cta-box a {
    display: inline-block;
    background: var(--gold);
    color: var(--blue-900);
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.cta-box a:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        padding: 12px 0;
        gap: 8px;
    }
    .nav-links { order: 3; width: 100%; justify-content: center; gap: 3px; }
    .nav-links a { font-size: 12px; padding: 6px 10px; }
    .lang-switch { order: 2; }
    .lang-switch a, .lang-switch span.active { font-size: 12px; padding: 4px 8px; }

    .hero { padding: 50px 0 45px; }
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 15px; }

    .trust-bar .container { gap: 16px; }
    .trust-item { font-size: 13px; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .articles-grid { grid-template-columns: 1fr; }

    article.article-page { padding: 20px; }
    article.article-page h1 { font-size: 22px; }
}
