/* =========================================================
   EDDY 艾迪街头服饰官网 - 极简专业响应式样式
   设计原则：纯色填充、细线条、无阴影/无渐变；
   以色彩对比与字号层级区分信息优先级；
   过渡仅用颜色与透明度，保持轻量流畅。
   ========================================================= */

:root {
    --ink:        #14151a;   /* 主文字 / 深色块 */
    --accent:     #d8232a;   /* 品牌强调红 */
    --accent-d:   #b81d23;   /* 强调红 hover */
    --text:       #3a3d44;   /* 正文 */
    --muted:      #8a8f99;   /* 次要文字 */
    --line:       #ececec;   /* 边框线 */
    --bg:         #ffffff;   /* 页面底色 */
    --bg-soft:    #f6f7f9;   /* 浅灰区块 */
    --maxw:       1200px;
    --radius:     4px;
    --ease:       .25s ease;
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    height: 32px; width: auto;
    background: var(--ink);                 /* 深色底块，使白色 logo 清晰可见 */
    padding: 5px 9px;
    border-radius: var(--radius);
    box-sizing: content-box;                /* padding 不挤压图片高度，整体约 42px 高 */
}
.brand-text { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: var(--ink); line-height: 1; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }

.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav li > a {
    display: block; padding: 8px 16px; font-size: 15px; color: var(--ink);
    border-bottom: 2px solid transparent; transition: color var(--ease), border-color var(--ease);
}
.site-nav li > a:hover { color: var(--accent); }
.site-nav li.active > a { color: var(--accent); border-bottom-color: var(--accent); }

/* 汉堡按钮（桌面默认隐藏） */
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span {
    position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink);
    transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.bg-light { background: var(--bg-soft); }
.bg-dark  { background: var(--ink); color: #fff; }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .eyebrow { font-size: 13px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.section-head .section-title { font-size: 28px; font-weight: 800; color: var(--ink); }
.section-head .more { margin-left: auto; color: var(--muted); font-size: 14px; }
.section-head .more:hover { color: var(--accent); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block; padding: 11px 26px; border: 1px solid var(--accent);
    background: var(--accent); color: #fff; font-size: 15px; border-radius: var(--radius);
    cursor: pointer; transition: background var(--ease), opacity var(--ease);
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ---------- 首页轮播 Banner ---------- */
.home-banner { background: var(--bg-soft); position: relative; }
.banner-hero {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #fff; pointer-events: none;
    text-shadow: 0 2px 14px rgba(0,0,0,.55); padding: 0 24px;
}
.banner-hero h1 { font-size: clamp(24px, 4vw, 46px); font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.banner-hero p { margin-top: 14px; font-size: clamp(14px, 2vw, 18px); opacity: .92; }
.banner-swiper { width: 100%; height: clamp(320px, 58vh, 600px); }
.banner-swiper .swiper-slide { position: relative; }
.banner-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.55)); /* 仅用于文字可读性，非装饰渐变 */
    color: #fff;
}
.banner-caption h2 { font-size: clamp(20px, 3vw, 34px); font-weight: 800; letter-spacing: 1px; }

/* ---------- 品牌简介 ---------- */
.intro-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.intro-text p { font-size: 16px; color: var(--text); margin-bottom: 24px; }
.intro-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- 新闻网格 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; transition: border-color var(--ease); }
.news-card:hover { border-color: var(--accent); }
.news-thumb { aspect-ratio: 3 / 1; overflow: hidden; background: var(--bg-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-info { padding: 18px 20px; }
.news-info time { color: var(--muted); font-size: 13px; }
.news-info h3 { font-size: 17px; color: var(--ink); margin: 6px 0 8px; font-weight: 700; }
.news-info p { color: var(--muted); font-size: 14px; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color var(--ease), transform var(--ease); }
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-card h3 { font-size: 16px; color: var(--ink); padding: 14px 16px 4px; font-weight: 700; }
.product-desc { color: var(--muted); font-size: 13px; padding: 0 16px 14px; }

/* ---------- CTA 区块 ---------- */
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: #c9c9c9; margin-bottom: 26px; }

/* ---------- 内页头图 ---------- */
.page-banner { background: var(--ink); color: #fff; padding: 56px 0 44px; }
.page-banner h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: 1px; }
.page-banner .crumb { color: #9a9a9a; margin-top: 10px; font-size: 14px; }
.page-banner .crumb a:hover { color: #fff; }

/* ---------- 关于我们 ---------- */
.about-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.about-title { font-size: 24px; color: var(--ink); margin-bottom: 18px; font-weight: 800; }
.rich-text { font-size: 15px; color: var(--text); }
.rich-text p { margin-bottom: 14px; }
.rich-text img { max-width: 100%; margin: 12px 0; border-radius: var(--radius); }
.about-side img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.side-card h4 { color: var(--ink); margin-bottom: 12px; font-size: 16px; }
.side-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.side-card li:last-child { border-bottom: 0; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-row { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--ease); }
.news-row:hover { border-color: var(--accent); }
.news-row-link { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px; align-items: center; }
.news-row-thumb { aspect-ratio: 3/1; overflow: hidden; background: var(--bg-soft); }
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row-body h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.news-row-body time { color: var(--muted); font-size: 13px; }
.news-row-body p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- 联系我们 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h3, .contact-form h3 { font-size: 20px; color: var(--ink); margin-bottom: 18px; font-weight: 800; }
.contact-info li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-info li span { color: var(--muted); min-width: 76px; }
.contact-qr { text-align: center; margin-top: 24px; }
.contact-qr img { width: 150px; margin: 0 auto 10px; border: 1px solid var(--line); padding: 8px; border-radius: var(--radius); }
.contact-qr p { color: var(--muted); font-size: 13px; }

/* 表单 */
.form .form-row { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.form label i { color: var(--accent); font-style: normal; }
.form input, .form textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 14px; color: var(--text); font-family: inherit; transition: border-color var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }

/* ---------- 新闻 / 产品详情 ---------- */
.article-layout, .product-detail { display: grid; gap: 40px; }
.article-layout { grid-template-columns: 1.7fr 1fr; }
.article-title { font-size: 28px; color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.article-meta { color: var(--muted); font-size: 13px; display: flex; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; }
.article-content p { margin-bottom: 14px; }
.article-side h4, .related-title { font-size: 17px; color: var(--ink); margin-bottom: 14px; font-weight: 800; }
.related-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related-list a { color: var(--text); }
.related-list a:hover { color: var(--accent); }

.product-detail { grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 48px; }
.detail-media img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-info h1 { font-size: 26px; color: var(--ink); margin-bottom: 12px; font-weight: 800; }
.detail-desc { color: var(--muted); margin-bottom: 18px; }

.empty-tip { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cfd2d8; padding: 48px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr; gap: 32px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 700; }
.footer-col p, .footer-col li { color: #b6bac1; font-size: 14px; padding: 4px 0; }
.footer-nav li a:hover { color: #fff; }
.footer-qr img { width: 110px; border: 4px solid #fff; border-radius: var(--radius); }
.footer-bottom { border-top: 1px solid #2a2c33; margin-top: 36px; padding: 18px 0; text-align: center; color: #8a8f99; font-size: 13px; }
.footer-bottom a { color: #b6bac1; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   响应式断点
   ========================================================= */

/* 平板：1024 及以下 */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .intro-body, .about-layout, .contact-layout,
    .article-layout, .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 移动端：768 及以下 —— 汉堡菜单 + 单列 */
@media (max-width: 768px) {
    .site-header { border-bottom: 1px solid var(--line); }
    .nav-toggle { display: block; }

    /* 移动端导航下拉 */
    .site-nav {
        position: absolute; top: 70px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height var(--ease);
    }
    .site-nav.open { max-height: 420px; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
    .site-nav li > a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
    .site-nav li.active > a { border-bottom-color: var(--accent); color: var(--accent); }

    .section { padding: 44px 0; }
    .section-head .section-title { font-size: 23px; }

    .news-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .news-row-link { grid-template-columns: 120px 1fr; gap: 14px; padding: 12px; }
    .news-row-body h3 { font-size: 16px; }
    .banner-swiper { height: 240px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-detail { grid-template-columns: 1fr; }
}
