/* ══════════════════════════════════════════════════════════════
   IECLUB DAILY — style.css
   Newspaper aesthetic · Enterprise Infrastructure Chronicle
   ══════════════════════════════════════════════════════════════ */

/* --- VARIABLES --- */
:root {
    --paper-bg: #F9F7F1;
    --ink-black: #111111;
    --ink-gray: #444444;
    --accent-red: #B91C1C;
    --accent-red-hover: #991B1B;

    --border-thick: 3px solid var(--ink-black);
    --border-thin: 1px solid #CCC;

    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- BASE --- */
body {
    background-color: var(--paper-bg);
    color: var(--ink-black);
    font-family: var(--font-body);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    background: var(--paper-bg);
    min-height: 100vh;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink-black);
    line-height: 1.1;
    margin-bottom: 12px;
}

/* --- IMAGE UTILITIES --- */
.editorial-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    filter: grayscale(100%) contrast(1.1);
    border: 1px solid var(--ink-black);
    transition: filter 0.4s ease;
}

.editorial-img:hover {
    filter: grayscale(0%);
}

.img-caption {
    font-family: var(--font-body);
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 25px;
    display: block;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.thumb-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    filter: grayscale(100%);
    border-bottom: 1px solid var(--ink-black);
    margin-bottom: 10px;
    transition: filter 0.3s ease;
}

.class-item:hover .thumb-img {
    filter: grayscale(0%);
}

/* --- LAYOUT UTILITIES --- */
.section-divider {
    border-top: 2px solid var(--ink-black);
    border-bottom: 1px solid var(--ink-black);
    padding: 8px 0;
    margin: 60px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    scroll-margin-top: 80px;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.page-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-gray);
}

/* --- HEADER --- */
header {
    padding-top: 20px;
    border-bottom: var(--border-thick);
    margin-bottom: 50px;
}

.top-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    border-bottom: 1px solid var(--ink-black);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-mono);
}

.masthead h1 {
    font-size: clamp(4rem, 9vw, 7rem);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    line-height: 0.9;
}

.masthead-sub {
    text-align: center;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 18px;
    margin: 10px 0 20px;
    color: var(--ink-gray);
}

.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 14px 0;
    border-top: 1px solid var(--ink-black);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.nav-bar a:hover {
    text-decoration: none;
    color: var(--accent-red);
}

.nav-active {
    color: var(--accent-red) !important;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 2px;
}

.nav-cta {
    margin-left: auto;
    background: var(--ink-black);
    color: white !important;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid var(--ink-black);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-cta:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- HERO LAYOUT --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--ink-black);
    padding-bottom: 40px;
}

.hero-img-large {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
    border: 1px solid var(--ink-black);
    margin-bottom: 18px;
}

.hero-img-large:hover {
    filter: grayscale(20%);
}

.hero-lead h2 {
    font-size: 40px;
    margin-bottom: 15px;
    line-height: 1.05;
}

.hero-lead p {
    font-size: 17px;
    font-family: var(--font-head);
    line-height: 1.65;
}

.opinion-col {
    border-right: 1px solid #ccc;
    padding-right: 30px;
}

.briefs-col {
    border-left: 1px solid #ccc;
    padding-left: 30px;
}

.sub-cat {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1.5px;
}

/* --- STAT BLOCK (hero sidebar) --- */
.stat-block {
    margin-top: 24px;
    border-top: 1px solid #ccc;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--ink-gray);
    margin-top: 3px;
    line-height: 1.4;
}

/* --- CONTENT COLUMNS --- */
.col-layout-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.col-layout-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.news-block {
    margin-bottom: 30px;
}

.news-block h3 {
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 5px;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dotted #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.news-list li strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    font-family: var(--font-head);
    font-weight: 700;
}

.news-list li:last-child {
    border: none;
}

/* --- FULL-WIDTH FEATURE STRIP --- */
.full-width-feature {
    background: #EFEFEA;
    border: 1px solid var(--ink-black);
    margin: 50px 0;
    padding: 0;
}

.feature-inner {
    padding: 40px;
}

.feature-inner>h3 {
    font-size: 26px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 10px;
}

.feature-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.stat-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-box {
    border: 2px solid var(--ink-black);
    padding: 18px 20px;
    background: white;
}

.stat-box .stat-big {
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 900;
    color: var(--accent-red);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-box p {
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.4;
}

/* --- AI SECTION GRID --- */
.tech-review-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}

.ai-highlight {
    background: #1a1a1a;
    color: #f9f7f1;
    padding: 36px;
}

.ai-highlight h3,
.ai-highlight h4 {
    color: #f9f7f1;
}

.ai-highlight .sub-cat {
    color: #FF6B6B;
}

.ai-highlight .news-list li {
    border-color: #333;
    color: #ddd;
    font-size: 14px;
}

.ai-highlight .news-list li strong {
    color: #f9f7f1;
    font-size: 14px;
}

.ai-highlight .italic-lead {
    margin-bottom: 16px;
    font-style: italic;
    color: #aaa;
    font-size: 14px;
}

.ai-warning-box {
    margin-top: 24px;
    border: 1px solid #444;
    border-left: 4px solid #FF6B6B;
    padding: 14px 16px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    background: #222;
}

.ai-warning-box strong {
    color: #FF6B6B;
}

.ai-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- USE CASE STRIP --- */
.use-case-strip {
    margin: 50px 0;
    border: 1px solid var(--ink-black);
    padding: 40px;
    background: white;
}

.use-case-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 20px;
}

.use-case-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.use-case-header p {
    font-size: 14px;
    color: var(--ink-gray);
    max-width: 700px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.use-case-card {
    border: 1px solid #ddd;
    padding: 20px;
    background: var(--paper-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.use-case-card:hover {
    border-color: var(--ink-black);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.use-case-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    display: block;
    margin-bottom: 8px;
}

.use-case-card h5 {
    font-size: 15px;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.use-case-card p {
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.55;
}

/* --- ZERO TRUST EXPLAINER BOX --- */
.zt-explainer {
    background: #FEF9F9;
    border: 1px solid #FECACA;
    border-left: 4px solid var(--accent-red);
    padding: 14px 16px;
    margin: 14px 0 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* --- SECURITY / RISK REPORT BOX --- */
.risk-report {
    border: 4px double var(--ink-black);
    padding: 30px;
    background-color: #F4F4F0;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 100px;
}

.security-title {
    color: var(--accent-red);
}

.logic-note {
    margin-bottom: 15px;
    font-style: italic;
    color: #555;
    font-size: 13px;
}

.split-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.sub-head-border {
    font-size: 15px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-family: var(--font-head);
    font-weight: 700;
}

.small-text {
    font-size: 13px;
}

/* --- SERVICES FEATURE (Section D) --- */
.services-feature {
    margin-bottom: 60px;
}

.services-intro {
    margin-bottom: 30px;
    max-width: 900px;
}

.services-intro h3 {
    font-size: 26px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 8px;
}

.services-intro p {
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 1.7;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: white;
    border: 1px solid var(--ink-black);
    padding: 30px;
}

.class-item {
    border: 1px solid #eee;
    padding: 18px;
    transition: border-color 0.2s ease;
}

.class-item:hover {
    border-color: #aaa;
}

.class-item h5 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.class-item ul {
    list-style: square;
    padding-left: 15px;
    font-size: 13px;
}

.class-item li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.dark-item {
    background: var(--ink-black);
    color: white;
    border: none;
}

.text-white {
    color: white !important;
}

.contact-text {
    font-size: 12px;
    margin-bottom: 12px;
    color: #ccc;
}

.contact-link {
    text-decoration: underline;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #FF6B6B;
    text-decoration: underline;
}

/* --- WHY IECLUB GRID --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--ink-black);
    margin-bottom: 60px;
}

.why-card {
    padding: 30px 28px;
    border-right: 1px solid var(--ink-black);
    position: relative;
}

.why-card:last-child {
    border-right: none;
}

.why-card:hover {
    background: #F4F4EE;
}

.why-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-red);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.why-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.why-card p {
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.6;
}

/* --- FOOTER (Left-Right Layout) --- */
footer {
    margin-top: 80px;
    border-top: var(--border-thick);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left h3 {
    margin-bottom: 8px;
}

.footer-left .global-presence {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-left .copyright {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}

.footer-right {
    text-align: right;
}

.footer-right .contact-label {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--accent-red);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.footer-right .footer-contact p {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-gray);
    margin-bottom: 4px;
    /* 紧凑排版 */
}

.footer-right .footer-contact a {
    text-decoration: underline;
}

/* 响应式：手机端自动切换回居中堆叠模式 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-right {
        text-align: center;
    }
}

.copyright {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    line-height: 1.8;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ink-black);
    color: #F9F7F1;
    padding: 20px;
    border-top: 4px solid var(--accent-red);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: #F9F7F1;
    text-decoration: underline;
    margin-left: 5px;
    font-weight: 600;
}

.cookie-link:hover {
    color: var(--accent-red);
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 9px 28px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    transition: background 0.2s ease;
}

.btn-cookie-accept:hover {
    background: white;
    color: var(--accent-red);
}

.btn-cookie-decline {
    background: transparent;
    color: #999;
    border: 1px solid #555;
    padding: 9px 28px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-cookie-decline:hover {
    border-color: #fff;
    color: #fff;
}

/* --- PRIVACY / LEGAL PAGE --- */
.legal-wrapper {
    max-width: 800px;
    margin: 60px auto;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 0 50px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
}

.legal-header {
    text-align: center;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 30px;
    margin-bottom: 40px;
    padding-top: 40px;
}

.legal-title {
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-body {
    padding-bottom: 60px;
}

.legal-body h3 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.legal-body p,
.legal-body ul {
    font-family: var(--font-body);
    font-size: 15px;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.75;
}

.legal-body ul {
    list-style: disc;
    padding-left: 20px;
}

.lead-paragraph {
    font-size: 18px;
    font-family: var(--font-head);
    font-style: italic;
    color: var(--ink-black);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1200px) {
    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-card:nth-child(2) {
        border-right: none;
    }

    .why-card:nth-child(3) {
        border-right: 1px solid var(--ink-black);
        border-top: 1px solid var(--ink-black);
    }

    .why-card:nth-child(4) {
        border-right: none;
        border-top: 1px solid var(--ink-black);
    }
}

@media (max-width: 1024px) {

    .hero-grid,
    .col-layout-3,
    .col-layout-2,
    .tech-review-grid,
    .classifieds-grid,
    .feature-grid-2 {
        grid-template-columns: 1fr;
    }

    .opinion-col,
    .briefs-col {
        border: none;
        padding: 0;
    }

    .nav-bar {
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .hero-img-large {
        height: 260px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .stat-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-box {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

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

    .why-card {
        border-right: none !important;
        border-bottom: 1px solid var(--ink-black);
    }

    .why-card:last-child {
        border-bottom: none;
    }

    .split-inner-grid {
        grid-template-columns: 1fr;
    }

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

    .legal-wrapper {
        border: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .masthead h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }
}

@media (max-width: 480px) {
    .classifieds-grid {
        grid-template-columns: 1fr;
    }

    .top-meta {
        flex-direction: column;
        gap: 4px;
    }
}