/* ==========================================================================
   news_oceanteal — 深海静谧风 (Deep Ocean Teal / Calm)
   CSS-first, system fonts only. One inline onclick toggles the mobile nav.
   ========================================================================== */

:root{
    --teal-deep:   #014f5f;
    --teal-mid:    #026873;
    --teal-light:  #0e8494;
    --teal-pale:   #e4f2f1;
    --offwhite:    #f6faf9;
    --offwhite-2:  #eef6f5;
    --card-bg:     #ffffff;
    --coral:       #ff7f6b;
    --coral-dark:  #ef6350;
    --text-main:   #1f3a3d;
    --text-soft:   #4c6668;
    --text-onteal: #dcecec;
    --text-onteal-soft: #9fc4c6;
    --border-soft: #dfece9;
    --shadow-teal: 0 10px 28px rgba(1,79,95,.12);
    --shadow-teal-hover: 0 16px 34px rgba(1,79,95,.18);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --maxw: 1180px;
    --font-base: "Segoe UI","PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
    margin:0;
    font-family:var(--font-base);
    color:var(--text-main);
    background:var(--offwhite);
    line-height:1.7;
    -webkit-font-smoothing:antialiased;
}

a{ color:var(--coral-dark); text-decoration:none; transition:color .18s ease; }
a:hover{ color:var(--teal-mid); text-decoration:underline; }

img{ max-width:100%; height:auto; display:block; }

ul{ list-style:none; margin:0; padding:0; }

h1,h2,h3{ font-weight:700; color:var(--text-main); line-height:1.35; margin:0 0 .6em; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

.visually-hidden{
    position:absolute !important; width:1px; height:1px; overflow:hidden;
    clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* ==========================================================================
   Wave dividers — pure CSS clip-path approximation of an ocean curve
   ========================================================================== */

.wave-divider{
    height:64px;
    margin-top:-2px;
    background:var(--offwhite);
    clip-path:polygon(
        0% 100%, 0% 46%, 4% 34%, 8% 44%, 12% 58%, 16% 42%, 20% 24%,
        24% 36%, 28% 54%, 32% 64%, 36% 46%, 40% 26%, 44% 40%, 48% 58%,
        52% 50%, 56% 30%, 60% 44%, 64% 60%, 68% 42%, 72% 26%, 76% 40%,
        80% 56%, 84% 46%, 88% 28%, 92% 40%, 96% 54%, 100% 44%, 100% 100%
    );
    position:relative;
    z-index:2;
}

.wave-divider--footer{
    background:var(--teal-deep);
    margin-top:0;
    margin-bottom:-2px;
    transform:scaleY(-1);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
    background:linear-gradient(160deg,var(--teal-deep) 0%,var(--teal-mid) 70%,var(--teal-light) 100%);
    position:relative;
}

.header-inner{
    max-width:var(--maxw);
    margin:0 auto;
    padding:20px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
}

.site-branding .logo-link{ display:inline-flex; align-items:center; }
.site-branding img{ display:block; }

.site-nav{ flex:1 1 auto; display:flex; justify-content:flex-end; }

.nav-list{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    align-items:center;
}

.nav-list li a{
    display:inline-block;
    padding:10px 16px;
    color:var(--text-onteal);
    font-size:15px;
    font-weight:600;
    border-radius:999px;
    text-decoration:none;
    transition:background .18s ease,color .18s ease;
}

.nav-list li a:hover,
.nav-list li a:focus{
    background:rgba(255,255,255,.14);
    color:#ffffff;
    text-decoration:none;
}

.nav-list .nav-home a{
    background:var(--coral);
    color:#ffffff;
}
.nav-list .nav-home a:hover{ background:var(--coral-dark); color:#fff; }

.nav-toggle{
    display:none;
    background:transparent;
    border:1px solid rgba(255,255,255,.4);
    border-radius:8px;
    width:42px;
    height:38px;
    padding:0;
    cursor:pointer;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
}
.nav-toggle span{
    display:block;
    width:20px;
    height:2px;
    background:#fff;
}

/* ==========================================================================
   Hero (index)
   ========================================================================== */

.hero{
    background:linear-gradient(160deg,var(--teal-deep) 0%,var(--teal-mid) 70%,var(--teal-light) 100%);
    padding:56px 24px 90px;
    text-align:center;
}

.hero-inner{ max-width:760px; margin:0 auto; }

.hero-title{
    color:#ffffff;
    font-size:34px;
    letter-spacing:.5px;
    margin-bottom:.4em;
}

.hero-sub{
    color:var(--text-onteal);
    font-size:16px;
    max-width:620px;
    margin:0 auto;
}

/* page hero (list / used on category pages) */
.page-hero{
    background:linear-gradient(160deg,var(--teal-deep) 0%,var(--teal-mid) 70%,var(--teal-light) 100%);
    padding:48px 24px 72px;
    text-align:center;
}
.page-hero-inner h1{
    color:#ffffff;
    font-size:28px;
    margin:0;
}

/* ==========================================================================
   Homepage catelog grid
   ========================================================================== */

.catelog-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    padding:12px 24px 64px;
}

.catelog-block{
    background:var(--card-bg);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-teal);
    padding:22px 22px 8px;
    display:flex;
    flex-direction:column;
}

.catelog-head{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    border-bottom:2px solid var(--teal-pale);
    padding-bottom:12px;
    margin-bottom:8px;
}

.catelog-head h2{
    font-size:19px;
    margin:0;
}
.catelog-head h2 a{ color:var(--text-main); }
.catelog-head h2 a:hover{ color:var(--teal-mid); text-decoration:none; }

.more-link{
    font-size:13px;
    color:var(--coral-dark);
    white-space:nowrap;
    font-weight:600;
}

.article-list{ padding-bottom:6px; }

.article-card{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    padding:10px 4px;
    border-bottom:1px dashed var(--border-soft);
    border-left:3px solid transparent;
    padding-left:10px;
    transition:border-color .18s ease,background .18s ease;
    border-radius:6px;
}

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

.article-card:hover{
    border-left-color:var(--coral);
    background:var(--offwhite-2);
}

.article-title{
    color:var(--text-main);
    font-size:14.5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    flex:1;
    min-width:0;
}
.article-title::before{ content:"\25CB"; color:var(--teal-light); margin-right:8px; font-size:10px; }
.article-card:hover .article-title{ color:var(--teal-mid); text-decoration:none; }

.article-date{
    color:var(--text-soft);
    font-size:12px;
    flex-shrink:0;
}

/* ==========================================================================
   Layout with sidebar (list.html / show.html)
   ========================================================================== */

.layout-with-sidebar{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:32px;
    padding:12px 24px 72px;
    align-items:start;
}

.layout-with-sidebar--show{ padding-top:56px; }

.content-col{
    background:var(--card-bg);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-teal);
    padding:28px 30px 34px;
}

/* list.html article list */

.list-item{
    padding:20px 0;
    border-bottom:1px solid var(--border-soft);
}
.list-item:first-child{ padding-top:4px; }
.list-item:last-child{ border-bottom:none; }

.list-item h3{
    font-size:18px;
    margin-bottom:8px;
}
.list-item h3 a{ color:var(--text-main); }
.list-item h3 a:hover{ color:var(--teal-mid); text-decoration:none; }

.list-meta{
    display:flex;
    gap:16px;
    font-size:12.5px;
    color:var(--text-soft);
    margin-bottom:10px;
}
.list-meta span::before{ content:"·"; margin-right:6px; color:var(--coral); }
.list-meta span:first-child::before{ content:none; }

.list-info{
    color:var(--text-soft);
    font-size:14px;
    margin:0;
}

.pagination{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:28px;
    padding-top:24px;
    border-top:1px solid var(--border-soft);
}

.pagination a{
    display:inline-block;
    padding:8px 14px;
    border-radius:8px;
    background:var(--offwhite-2);
    color:var(--text-main);
    font-size:13.5px;
    font-weight:600;
}
.pagination a:hover{
    background:var(--teal-mid);
    color:#fff;
    text-decoration:none;
}

/* show.html article detail */

.article-header{ border-bottom:2px solid var(--teal-pale); padding-bottom:18px; margin-bottom:20px; }

.article-header h1{
    font-size:26px;
    margin-bottom:12px;
}

.article-meta{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    font-size:13px;
    color:var(--text-soft);
}
.article-meta .meta-source{ color:var(--coral-dark); font-weight:600; }

.summary{
    background:var(--teal-pale);
    border-left:4px solid var(--teal-mid);
    color:var(--text-soft);
    padding:14px 18px;
    border-radius:0 var(--radius-sm) var(--radius-sm) 0;
    font-size:14px;
    margin:18px 0 24px;
}

.article-body{
    font-size:16px;
    color:var(--text-main);
}
.article-body p{ margin:0 0 1.2em; }
.article-body img{ border-radius:var(--radius-md); margin:1em 0; box-shadow:var(--shadow-teal); }
.article-body h2,.article-body h3{ margin-top:1.6em; }
.article-body a{ color:var(--coral-dark); text-decoration:underline; }
.article-body blockquote{
    margin:1.4em 0;
    padding:14px 20px;
    background:var(--offwhite-2);
    border-left:4px solid var(--coral);
    border-radius:0 var(--radius-sm) var(--radius-sm) 0;
    color:var(--text-soft);
}
.article-body table{ width:100%; border-collapse:collapse; margin:1.2em 0; }
.article-body table th,.article-body table td{ border:1px solid var(--border-soft); padding:8px 12px; }

.article-nav{
    margin-top:32px;
    padding-top:22px;
    border-top:1px solid var(--border-soft);
    display:flex;
    flex-direction:column;
    gap:10px;
    font-size:14px;
}
.article-nav .nav-label{ color:var(--text-soft); margin-right:4px; }
.article-nav a{ color:var(--text-main); font-weight:600; }
.article-nav a:hover{ color:var(--teal-mid); }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar{ display:flex; flex-direction:column; gap:24px; }

.side-block{
    background:var(--card-bg);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-teal);
    padding:20px 20px 10px;
}

.side-block h2{
    font-size:16px;
    color:var(--teal-deep);
    border-bottom:2px solid var(--teal-pale);
    padding-bottom:10px;
    margin-bottom:6px;
    position:relative;
}
.side-block h2::before{
    content:"";
    display:inline-block;
    width:5px;
    height:16px;
    background:var(--coral);
    border-radius:3px;
    margin-right:8px;
    vertical-align:-2px;
}

.side-list li{
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding:9px 0;
    border-bottom:1px dashed var(--border-soft);
}
.side-list li:last-child{ border-bottom:none; }

.side-list a{
    color:var(--text-main);
    font-size:13.5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    flex:1;
    min-width:0;
}
.side-list a:hover{ color:var(--teal-mid); text-decoration:none; }

.side-date{
    color:var(--text-soft);
    font-size:11.5px;
    flex-shrink:0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
    background:var(--teal-deep);
    color:var(--text-onteal-soft);
    position:relative;
    margin-top:-2px;
}

.footer-links{ padding:8px 24px 20px; }

.footer-links-inner{ max-width:var(--maxw); margin:0 auto; text-align:center; }

.footer-heading{
    color:var(--text-onteal);
    font-size:15px;
    margin-bottom:14px;
}

.flink-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 18px;
}

.flink-list a{
    color:var(--text-onteal-soft);
    font-size:13px;
}
.flink-list a:hover{ color:var(--coral); text-decoration:none; }

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.12);
    padding:18px 24px 8px;
    text-align:center;
}

.footer-bottom p{
    max-width:var(--maxw);
    margin:0 auto;
    font-size:12.5px;
    color:var(--text-onteal-soft);
    line-height:2;
}

.footer-bottom a{ color:var(--text-onteal); }
.footer-bottom a:hover{ color:var(--coral); text-decoration:none; }

/* ==========================================================================
   Responsive — below 768px
   ========================================================================== */

@media (max-width:1024px){
    .catelog-grid{ grid-template-columns:repeat(2,1fr); }
    .layout-with-sidebar{ grid-template-columns:1fr 280px; }
}

@media (max-width:768px){
    .header-inner{ padding:14px 20px; }

    .nav-toggle{ display:flex; }

    .site-nav{
        width:100%;
        justify-content:flex-start;
        order:3;
    }

    .nav-list{
        display:none;
        width:100%;
        flex-direction:column;
        gap:2px;
        padding-top:12px;
    }
    .site-nav.nav-open .nav-list{ display:flex; }

    .nav-list li a{ display:block; border-radius:8px; }

    .hero{ padding:40px 20px 70px; }
    .hero-title{ font-size:26px; }
    .hero-sub{ font-size:14.5px; }

    .page-hero{ padding:34px 20px 56px; }
    .page-hero-inner h1{ font-size:22px; }

    .catelog-grid{ grid-template-columns:1fr; padding:8px 16px 44px; gap:20px; }

    .layout-with-sidebar{
        grid-template-columns:1fr;
        padding:8px 16px 48px;
        gap:22px;
    }
    .layout-with-sidebar--show{ padding-top:36px; }

    .content-col{ padding:20px 18px 26px; }

    .article-header h1{ font-size:21px; }

    .wave-divider{ height:38px; }

    .footer-links{ padding:6px 16px 16px; }
    .footer-bottom{ padding:14px 16px 6px; }
}

@media (max-width:480px){
    .list-meta{ flex-wrap:wrap; gap:8px 14px; }
    .article-meta{ flex-direction:column; gap:6px; }
}

/* ==========================================================================
   Print — strip decoration, keep readable content
   ========================================================================== */

@media print{
    .site-header,.site-footer,.wave-divider,.sidebar,.hero,.page-hero,
    .pagination,.article-nav,.nav-toggle{ display:none !important; }

    body{ background:#fff; color:#000; }

    .content-col{ box-shadow:none; padding:0; }

    .layout-with-sidebar{ display:block; padding:0; }

    a{ color:#000; text-decoration:underline; }
}
