* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #333; background: #fff; }

/* Header */
.header { background: #1a1a2e; color: #fff; position: relative; width: 100%; z-index: 1000; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 64px; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; display: block; }
.nav { display: flex; gap: 28px; }
.nav a { color: #ccc; text-decoration: none; font-size: 14px; transition: color .3s; cursor: pointer; }
.nav a:hover { color: #667eea; }
.nav .dropdown { position: relative; }
.nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #16213e; min-width: 200px; padding: 8px 0; border-radius: 8px; }
.nav .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 20px; color: #aaa; }
.dropdown-menu a:hover { background: #1a1a3e; color: #fff; }

/* Hero Section */
.hero { padding: 56px 20px 80px; background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); color: #fff; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: #aaa; max-width: 700px; margin: 0 auto 30px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; justify-content: center; }
.btn-primary { padding: 14px 36px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn-secondary { padding: 14px 36px; background: transparent; color: #ccc; border: 1px solid #555; border-radius: 8px; font-size: 16px; cursor: pointer; text-decoration: none; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 12px; }
.section-desc { text-align: center; color: #666; font-size: 16px; margin-bottom: 50px; }

/* anchor offset (header no longer fixed) */
.section, .dsm-showcase, .logos-section { scroll-margin-top: 20px; }
#products .product-card { scroll-margin-top: 30px; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.product-card { border: 1px solid #eee; border-radius: 12px; padding: 30px; transition: all .3s; cursor: pointer; }
.product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.product-card .icon { width: 48px; height: 48px; background: linear-gradient(135deg, #667eea15, #764ba215); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 24px; }
.product-card h3 { font-size: 18px; margin-bottom: 8px; }
.product-card .tag { display: inline-block; background: #667eea15; color: #667eea; padding: 2px 10px; border-radius: 4px; font-size: 12px; margin-bottom: 12px; }
.product-card p { color: #666; font-size: 14px; line-height: 1.6; }
.product-card ul { list-style: none; margin-top: 12px; }
.product-card ul li { color: #888; font-size: 13px; padding: 4px 0; padding-left: 16px; position: relative; }
.product-card ul li:before { content: '✓'; position: absolute; left: 0; color: #667eea; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }
.feature-card { padding: 30px; border-radius: 12px; background: #f8f9fc; }
.feature-card .icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: #666; font-size: 14px; line-height: 1.7; }

/* Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.solution-card { border: 1px solid #eee; border-radius: 12px; padding: 24px; transition: .3s; }
.solution-card:hover { border-color: #667eea; }
.solution-card .icon { font-size: 28px; margin-bottom: 12px; }
.solution-card h3 { font-size: 16px; margin-bottom: 6px; }
.solution-card p { color: #888; font-size: 13px; }

/* Stats Banner */
.stats-banner { background: linear-gradient(135deg, #667eea, #764ba2); padding: 60px 20px; text-align: center; color: #fff; }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item h2 { font-size: 40px; }
.stat-item p { font-size: 14px; opacity: .8; }

/* Footer */
.footer { background: #1a1a2e; color: #888; padding: 40px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-col a { display: block; color: #888; text-decoration: none; font-size: 13px; padding: 4px 0; cursor: pointer; }
.footer-col a:hover { color: #667eea; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 13px; }
.footer-bottom a { color: #888; text-decoration: none; }
.footer-bottom a:hover { color: #667eea; }

/* DSM Section */
.dsm-showcase { background: #f8f9fc; }
.dsm-content { display: flex; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.dsm-text { flex: 1; }
.dsm-text h2 { font-size: 32px; margin-bottom: 16px; }
.dsm-text p { color: #666; line-height: 1.7; font-size: 15px; }
.dsm-text .feature-list { margin-top: 20px; }
.dsm-text .feature-list li { padding: 6px 0; list-style: none; }
.dsm-text .feature-list li:before { content: '✦ '; color: #667eea; }
.dsm-visual { flex: 1; background: linear-gradient(135deg, #667eea20, #764ba220); border-radius: 16px; padding: 40px; text-align: center; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.dsm-visual .big-icon { font-size: 80px; }

/* App Suite */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.app-card { background: #f8f9fc; border-radius: 12px; padding: 20px 12px; text-align: center; transition: .3s; cursor: pointer; }
.app-card:hover { background: #667eea15; }
.app-card .icon { font-size: 28px; margin-bottom: 8px; }
.app-card .name { font-size: 13px; color: #555; }

/* Enterprise logos */
.logos-section { background: #f8f9fc; padding: 60px 20px; text-align: center; }
.logos-section p { color: #888; margin-bottom: 30px; }
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.logo-item { width: 100px; height: 40px; background: #ddd; border-radius: 6px; opacity: .4; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; }

/* Contact Modal（咨询弹窗，全局统一） */
#contactModal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; background: rgba(15,12,41,.6); }
#contactModal .cm-dialog { max-width: 780px; margin: 60px auto; background: #fff; border-radius: 12px; overflow: hidden; }
#contactModal .cm-head { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
#contactModal .cm-head h4 { font-size: 17px; font-weight: 600; }
#contactModal .cm-close { color: #fff; font-size: 22px; cursor: pointer; line-height: 1; opacity: .9; }
#contactModal .cm-body { padding: 20px; }
#contactModal table { width: 100%; border-collapse: collapse; }
#contactModal th, #contactModal td { padding: 9px 12px; border-bottom: 1px solid #eee; font-size: 14px; color: #333; text-align: left; }
#contactModal thead th { background: #f8f9fc; color: #555; }
#contactModal td a { color: #667eea; text-decoration: none; font-weight: 500; }
#contactModal td a:hover { color: #764ba2; text-decoration: underline; }
#contactModal .cm-foot { text-align: center; padding: 6px 20px 18px; font-size: 14px; color: #666; }
#contactModal .cm-foot a { color: #667eea; font-weight: 600; text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero h1 { font-size: 32px; }
    .dsm-content { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 产品大型面板下拉菜单（对标官网结构） ===== */
.nav .dropdown { position: static; }
.nav .mega { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(1060px, 94vw); background: #fff; color: #333; border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.28); padding: 26px 30px; gap: 34px; z-index: 1500; }
.nav .dropdown:hover .mega { display: flex; }
.mega-col { flex: 1; min-width: 0; }
.mega-col h5 { font-size: 14px; color: #1a1a2e; margin: 16px 0 6px; font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.mega-col h5:first-child { margin-top: 0; }
.mega-col a { display: block; color: #555 !important; font-size: 13px; padding: 6px 2px; text-decoration: none; transition: .2s; }
.mega-col a:hover { color: #667eea !important; padding-left: 6px; }
.mega-side { width: 300px; flex-shrink: 0; background: #f2f3f7; border-radius: 10px; padding: 22px; }
.mega-side .mega-img { width: 100%; height: 150px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #14141f, #2a2a3e); margin-bottom: 14px; overflow: hidden; }
.mega-side .mega-img img { max-width: 88%; max-height: 82%; object-fit: contain; }
.mega-side h4 { font-size: 17px; color: #1a1a2e; margin-bottom: 6px; }
.mega-side p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.mega-side a { display: block; color: #333 !important; font-size: 13px; padding: 5px 0; text-decoration: none; font-weight: 500; transition: .2s; }
.mega-side a:hover { color: #667eea !important; padding-left: 4px; }
@media (max-width: 900px) {
    .nav .mega { flex-direction: column; max-height: 70vh; overflow: auto; }
    .mega-side { width: 100%; }
}

/* ===== 头部 logo：白色底托 + 黑色 Synology 字样 ===== */
.logo-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 5px 16px 5px 6px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.logo-badge img { width: 30px !important; height: 30px !important; border-radius: 6px; }
.logo-badge .logo-name { color: #000 !important; font-size: 19px; font-weight: 700; letter-spacing: .3px; }

/* ===== 产品菜单：点击可停留，悬停桥接 ===== */
.nav .mega.open { display: flex !important; }
.nav .mega::before { content: ''; position: absolute; top: -26px; left: 0; right: 0; height: 26px; }

/* ===== v6 知识中心与文档库（内容 1:1 来自 kb.synology.cn/zh-cn） ===== */
.kb-hero-sub { font-size: 20px; font-weight: 600; color: #1a1a2e !important; }
.kb-search { position: relative; max-width: 640px; margin: 6px auto 42px; }
.kb-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #8a8fa3; pointer-events: none; }
.kb-search input { width: 100%; box-sizing: border-box; padding: 15px 20px 15px 48px; border: 1px solid #d9dce6; border-radius: 10px; font-size: 15px; color: #1a1a2e; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.kb-search input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.15); }
.kb-block { margin-bottom: 46px; text-align: left; }
.kb-h3 { font-size: 22px; color: #1a1a2e; margin: 0 0 6px; }
.kb-p { color: #6b7085; font-size: 14px; margin: 0 0 18px; }
.kb-os-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kb-os-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; background: #f7f8fb; border: 1px solid #eceef4; border-radius: 12px; padding: 26px 10px 20px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 168px; }
.kb-os-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(26,26,46,.10); border-color: #667eea; }
.kb-os-icon { height: 76px; display: flex; align-items: center; justify-content: center; }
.kb-os-icon img { max-height: 76px; max-width: 110px; object-fit: contain; }
.kb-os-name { font-size: 14px; font-weight: 600; color: #1a1a2e; text-align: center; line-height: 1.35; }
.kb-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-cat-card { background: #f7f8fb; border: 1px solid #eceef4; border-radius: 12px; padding: 24px 22px; }
.kb-cat-card h4 { margin: 0 0 8px; font-size: 17px; color: #1a1a2e; }
.kb-cat-card > p { margin: 0 0 14px; color: #6b7085; font-size: 13.5px; line-height: 1.6; }
.kb-links { display: flex; flex-direction: column; gap: 9px; }
.kb-links a { color: #2f6fe4; font-size: 14px; text-decoration: none; }
.kb-links a i { font-style: normal; margin-left: 5px; transition: transform .2s; display: inline-block; }
.kb-links a:hover { text-decoration: underline; }
.kb-links a:hover i { transform: translateX(3px); }
.kb-help-list { display: flex; flex-direction: column; gap: 10px; }
.kb-help-list a { display: flex; align-items: center; justify-content: space-between; background: #f7f8fb; border: 1px solid #eceef4; border-radius: 10px; padding: 15px 20px; text-decoration: none; font-size: 15px; font-weight: 600; color: #1a1a2e; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kb-help-list a i { font-style: normal; color: #9aa0b5; font-size: 18px; transition: transform .2s, color .2s; }
.kb-help-list a:hover { border-color: #667eea; box-shadow: 0 8px 20px rgba(26,26,46,.08); transform: translateX(3px); }
.kb-help-list a:hover i { color: #667eea; transform: translateX(3px); }
.kb-finder { display: flex; gap: 12px; align-items: stretch; max-width: 560px; }
.kb-select-wrap { flex: 1; position: relative; }
.kb-select-wrap::after { content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #6b7085; pointer-events: none; }
.kb-finder select { width: 100%; appearance: none; -webkit-appearance: none; padding: 13px 38px 13px 16px; border: 1px solid #d9dce6; border-radius: 10px; font-size: 14.5px; color: #1a1a2e; background: #fff; outline: none; cursor: pointer; }
.kb-finder select:focus { border-color: #667eea; }
.kb-finder button { padding: 13px 26px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .2s, transform .2s; }
.kb-finder button:hover { opacity: .9; transform: translateY(-1px); }
.kb-contact { display: block; background: linear-gradient(135deg, #14141f, #1d1d30); border-radius: 14px; text-align: center; padding: 52px 20px 48px; text-decoration: none; position: relative; }
.kb-contact h3 { margin: 0 0 10px; color: #fff; font-size: 26px; }
.kb-contact p { margin: 0; color: #b9bdd0; font-size: 15px; }
.kb-contact-arrow { display: inline-block; margin-top: 18px; color: #fff; font-size: 22px; transition: transform .25s; }
.kb-contact:hover .kb-contact-arrow { transform: translateX(6px); }
#kbBeeModal { display: none; position: fixed; z-index: 3001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background: rgba(10,10,20,.55); }
.kb-bee-dialog { background: #fff; border-radius: 14px; max-width: 520px; width: calc(100% - 40px); margin: 14vh auto 0; padding: 22px 24px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.kb-bee-dialog .cm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.kb-bee-dialog .cm-head h4 { margin: 0; font-size: 19px; color: #1a1a2e; }
.kb-bee-dialog .cm-close { font-size: 26px; color: #9aa0b5; cursor: pointer; line-height: 1; }
.kb-bee-dialog .cm-close:hover { color: #1a1a2e; }
.kb-bee-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kb-bee-body a { display: flex; flex-direction: column; align-items: center; gap: 12px; background: #f7f8fb; border: 1px solid #eceef4; border-radius: 12px; padding: 24px 14px 18px; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.kb-bee-body a:hover { transform: translateY(-3px); border-color: #667eea; box-shadow: 0 10px 24px rgba(26,26,46,.10); }
.kb-bee-body img { max-height: 70px; max-width: 140px; object-fit: contain; }
.kb-bee-body span { font-size: 15px; font-weight: 600; color: #1a1a2e; }
@media (max-width: 900px) {
    .kb-os-grid { grid-template-columns: repeat(3, 1fr); }
    .kb-cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .kb-os-grid { grid-template-columns: repeat(2, 1fr); }
    .kb-finder { flex-direction: column; }
}

/* ===== v7 客户案例（内容来自 synology.cn/zh-cn/company/case_study） ===== */
.cases-section { background: #f7f8fb; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eceef4; border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.case-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(26,26,46,.12); border-color: #667eea; }
.case-img { height: 175px; overflow: hidden; background: #eef0f6; }
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.case-card:hover .case-img img { transform: scale(1.04); }
.case-body { padding: 18px 20px 22px; }
.case-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #667eea; background: rgba(102,126,234,.12); padding: 3px 12px; border-radius: 20px; }
.case-body h3 { margin: 10px 0 8px; font-size: 18px; color: #1a1a2e; }
.case-body p { margin: 0; color: #6b7085; font-size: 14px; line-height: 1.65; }
.cases-more { text-align: center; margin-top: 30px; }
.cases-more a { display: inline-block; padding: 12px 34px; border: 1px solid #667eea; border-radius: 30px; color: #667eea; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.cases-more a i { font-style: normal; display: inline-block; margin-left: 4px; transition: transform .2s; }
.cases-more a:hover { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; transform: translateY(-2px); }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
