/* XXYUN Modern Light Ice-Blue Theme */
:root {
    --bg-main: #f4f8fc;
    --bg-card: #ffffff;
    --bg-card-alt: #f0f7ff;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --accent-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-orange: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-highlight: #bae6fd;
    --shadow-sm: 0 2px 4px rgba(2, 132, 199, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(2, 132, 199, 0.1), 0 8px 10px -6px rgba(2, 132, 199, 0.05);
    --shadow-lg: 0 20px 35px -10px rgba(2, 132, 199, 0.15), 0 10px 15px -5px rgba(2, 132, 199, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Shapes Inspired by Light Ice Blue Theme */
.bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.4;
    filter: blur(1px);
    animation: float 14s infinite ease-in-out;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid rgba(56, 189, 248, 0.4);
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.shape-circle {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(245, 158, 11, 0.35);
    border-radius: 50%;
    top: 35%;
    right: 7%;
    animation-delay: 2s;
}

.shape-square {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    transform: rotate(45deg);
    top: 65%;
    left: 4%;
    animation-delay: 4s;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(2, 132, 199, 0.3);
    top: 80%;
    right: 12%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-highlight);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-badge {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid var(--border-highlight);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.coupon-badge-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px dashed var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.coupon-code {
    font-family: monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-hover);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 600;
}

.hero-trust-bar {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-item i {
    color: var(--primary);
}

/* Ice-Blue Card Stack Hero Visual */
.hero-card-stack {
    position: relative;
    padding: 20px;
}

.main-visual-card {
    background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 100%);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.status-badge {
    background: rgba(39, 201, 63, 0.15);
    color: #15803d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.visual-speed-meter {
    text-align: center;
    padding: 20px 0;
}

.speed-val {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.speed-unit {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 16px;
}

.server-node-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.node-chip {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.node-ping {
    color: #16a34a;
    font-weight: 700;
}

/* Feature Cards Section */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Table Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-highlight);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: var(--shadow-md);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan-traffic {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.plan-features li i {
    color: #16a34a;
    font-size: 1rem;
}

/* Reference Table Style */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.custom-table th {
    background: var(--bg-card-alt);
    color: var(--text-primary);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
}

.custom-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.custom-table tr:hover {
    background: rgba(224, 242, 254, 0.4);
}

/* User Groups & Scenarios Grid */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.scenario-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.scenario-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.scenario-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

/* Setup Guide Step Box */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Blog / Article Matrix Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.article-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-title-link {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Accordion */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Single Article Layout */
.article-layout {
    padding: 60px 0 80px;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.article-header {
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-h1 {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-hover);
    margin: 28px 0 14px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: 0 0 24px 24px;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 8px;
}

.callout-box {
    background: var(--bg-card-alt);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 28px 0;
}

.callout-box strong {
    color: var(--primary);
}

.cta-banner {
    background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    margin: 50px 0;
}

.cta-banner h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.article-rel-links {
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 40px;
}

.article-rel-links h4 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

/* Footer Section */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-container { padding: 24px; }
}
