Files
vps_web/static/css/style.css
ddrwode 4210e0d70a 哈哈
2026-02-10 17:54:22 +08:00

3198 lines
61 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:root {
/* 浅色主题 - 专业商务风格 */
--bg: #F8FAFC;
--bg-card: #FFFFFF;
--bg-elevated: #F1F5F9;
--border: #E2E8F0;
--border-hover: #CBD5E1;
--text: #0F172A;
--text-muted: #64748B;
--accent: #0369A1;
--accent-dim: #0284C7;
--accent-glow: rgba(3, 105, 161, 0.1);
--green: #059669;
--green-dim: #047857;
--orange: #EA580C;
--red: #DC2626;
--font-mono: "JetBrains Mono", "Fira Code", monospace;
--font-sans: "Noto Sans SC", -apple-system, sans-serif;
--radius: 8px;
--radius-lg: 12px;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: var(--font-sans);
font-size: 15px;
color: var(--text);
background: var(--bg);
line-height: 1.5;
display: flex;
flex-direction: column;
}
.header {
background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
border-bottom: 1px solid var(--border);
padding: 1rem 1.5rem;
position: relative;
overflow: hidden;
}
.header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent), var(--green), var(--accent));
opacity: 0.8;
}
.header-inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.header-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}
.site-logo-link {
display: inline-flex;
align-items: center;
text-decoration: none;
}
.site-logo {
display: block;
width: clamp(168px, 24vw, 240px);
height: auto;
}
.logo {
font-family: var(--font-mono);
font-size: 1.5rem;
font-weight: 700;
margin: 0;
background: linear-gradient(135deg, #0F172A 0%, var(--accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.02em;
display: inline-block;
}
.tagline {
margin: 0;
color: var(--text-muted);
font-size: 0.875rem;
}
.header-nav {
display: flex;
align-items: center;
gap: 0.7rem;
flex-wrap: wrap;
}
.header-nav a {
color: var(--accent);
text-decoration: none;
font-size: 0.9rem;
padding: 0.3rem 0.5rem;
border-radius: 6px;
transition: var(--transition);
}
.header-nav a:hover {
background: var(--accent-glow);
}
.lang-switch {
display: inline-flex;
align-items: center;
gap: 0.25rem;
margin-right: 0.5rem;
font-size: 0.875rem;
background: var(--bg-elevated);
padding: 0.25rem;
border-radius: 6px;
border: 1px solid var(--border);
}
.lang-switch a {
color: var(--text-muted);
text-decoration: none;
padding: 0.3rem 0.6rem;
border-radius: 4px;
transition: var(--transition);
font-weight: 500;
}
.lang-switch a:hover {
color: var(--accent);
background: var(--bg-card);
}
.lang-switch a.active {
font-weight: 600;
color: var(--text);
background: var(--bg-card);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.lang-sep {
color: var(--border);
user-select: none;
font-weight: 300;
}
.nav-link-with-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.nav-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 0.3rem;
border-radius: 999px;
background: var(--red);
color: #fff;
font-size: 0.7rem;
line-height: 1;
font-family: var(--font-mono);
}
.header-user {
color: var(--text-muted);
font-size: 0.85rem;
}
.main {
flex: 1;
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem;
width: 100%;
}
.filters {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: flex-end;
margin-bottom: 1.5rem;
padding: 1.25rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
transition: var(--transition);
}
.filters:hover {
border-color: var(--border-hover);
box-shadow: var(--shadow-lg);
}
.filter-group {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.filter-group label {
font-size: 0.8rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.filter-group select {
font-family: var(--font-mono);
font-size: 0.9rem;
padding: 0.5rem 0.75rem;
min-width: 140px;
background: var(--bg-card);
border: 1.5px solid var(--border);
border-radius: 6px;
color: var(--text);
cursor: pointer;
transition: var(--transition);
}
.filter-group select:hover {
border-color: var(--accent);
background: var(--bg-card);
}
.filter-group select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.btn-reset {
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 1rem;
background: var(--bg-card);
border: 1.5px solid var(--border);
border-radius: 6px;
color: var(--text);
cursor: pointer;
margin-left: auto;
transition: var(--transition);
}
.btn-reset:hover {
border-color: var(--accent);
background: var(--accent);
color: white;
transform: translateY(-1px);
box-shadow: 0 4px 6px rgba(3, 105, 161, 0.2);
}
.btn-reset:active {
transform: translateY(0);
}
.table-wrap {
overflow-x: auto;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--bg-card);
box-shadow: var(--shadow);
position: relative;
}
.table-wrap::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
opacity: 0.3;
}
.price-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.price-table th,
.price-table td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
.price-table th {
font-family: var(--font-mono);
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
background: var(--bg-elevated);
}
.price-table tbody tr {
transition: var(--transition);
}
.price-table tbody tr:hover {
background: var(--bg-elevated);
transform: scale(1.001);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.price-table tbody tr:last-child td {
border-bottom: none;
}
.col-price {
text-align: right;
white-space: nowrap;
}
.price-table td.col-price {
font-family: var(--font-mono);
font-weight: 700;
color: var(--green);
font-size: 0.95rem;
}
.price-table .provider {
font-weight: 500;
color: var(--text);
}
.price-table .region {
color: var(--text-muted);
font-size: 0.85em;
}
.price-table .col-link {
white-space: nowrap;
}
.price-table .col-link a {
color: white;
background: var(--accent);
text-decoration: none;
padding: 0.35rem 0.85rem;
border-radius: 6px;
transition: var(--transition);
display: inline-block;
font-size: 0.85rem;
font-weight: 500;
}
.price-table .col-link a:hover {
background: var(--accent-dim);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}
/* 广告位占位,接入 AdSense 后可移除最小高度 */
.ad-slot {
min-height: 50px;
margin: 0.5rem 0;
}
.ad-slot-header {
margin-top: 1rem;
}
.ad-slot-inline {
margin-bottom: 1rem;
}
.ad-slot-footer {
margin-bottom: 1rem;
}
.disclaimer {
margin-top: 1rem;
font-size: 0.8rem;
color: var(--text-muted);
}
/* 加载动画 */
.loading-spinner {
display: inline-block;
width: 40px;
height: 40px;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.footer {
margin-top: auto;
padding: 1rem 1.5rem;
border-top: 1px solid var(--border);
text-align: center;
font-size: 0.85rem;
color: var(--text-muted);
}
.footer p {
margin: 0;
}
.footer .contact {
margin-top: 0.5rem;
}
.footer .contact a {
color: var(--accent);
text-decoration: none;
}
.footer .contact a:hover {
text-decoration: underline;
}
.empty-state {
text-align: center;
padding: 3rem 2rem;
color: var(--text-muted);
}
.empty-state p {
margin: 0;
font-size: 1rem;
}
/* 加载状态 */
.loading-skeleton {
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.loading-row {
height: 48px;
background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* 数据徽章 */
.badge {
display: inline-block;
padding: 0.15rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
background: var(--bg-elevated);
border: 1px solid var(--border);
}
.badge-primary {
background: var(--accent-glow);
border-color: var(--accent);
color: var(--accent);
}
.badge-success {
background: rgba(63, 185, 80, 0.15);
border-color: var(--green);
color: var(--green);
}
@media (max-width: 768px) {
.header {
padding: 1rem;
}
.header-inner {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
.header-brand {
width: 100%;
justify-content: space-between;
}
.header-nav {
width: 100%;
justify-content: flex-start;
font-size: 0.85rem;
gap: 0.5rem;
}
.lang-switch {
font-size: 0.8rem;
padding: 0.2rem;
}
.lang-switch a {
padding: 0.25rem 0.5rem;
}
.logo {
font-size: 1.25rem;
}
.site-logo {
width: clamp(148px, 44vw, 210px);
}
.tagline {
font-size: 0.8rem;
}
.filters {
flex-direction: column;
align-items: stretch;
padding: 1rem;
}
.filter-group {
min-width: 100%;
}
.filter-group select {
width: 100%;
}
.btn-reset {
margin-left: 0;
width: 100%;
}
.price-table th,
.price-table td {
padding: 0.5rem 0.6rem;
font-size: 0.8rem;
}
.price-table .hide-mobile {
display: none;
}
.table-wrap {
border-radius: var(--radius);
}
}
/* 平滑滚动 */
html {
scroll-behavior: smooth;
}
/* 自定义滚动条 */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--bg-elevated);
}
::-webkit-scrollbar-thumb {
background: var(--border-hover);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* ========== 新增功能样式 ========== */
/* 搜索栏 */
.filter-group-search {
flex: 1;
min-width: 200px;
}
.filter-group-search input {
font-family: var(--font-sans);
font-size: 0.9rem;
padding: 0.5rem 0.75rem;
width: 100%;
background: var(--bg-card);
border: 1.5px solid var(--border);
border-radius: 6px;
color: var(--text);
transition: var(--transition);
}
.filter-group-search input:hover {
border-color: var(--accent);
}
.filter-group-search input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
.filter-group-search input::placeholder {
color: var(--text-muted);
opacity: 0.7;
}
/* 可排序表头 */
.sortable {
user-select: none;
transition: var(--transition);
cursor: pointer;
position: relative;
}
.sortable:hover {
background: var(--bg-elevated) !important;
color: var(--accent);
}
.sortable.sorted {
color: var(--accent);
font-weight: 700;
}
.sort-icon {
font-size: 0.8em;
margin-left: 0.25rem;
display: inline-block;
min-width: 1em;
}
/* 收藏按钮 */
.btn-favorite {
background: none;
border: none;
font-size: 1.2rem;
cursor: pointer;
padding: 0.25rem 0.5rem;
color: var(--text-muted);
transition: var(--transition);
margin-right: 0.5rem;
border-radius: 4px;
}
.btn-favorite:hover {
color: var(--orange);
transform: scale(1.2);
background: rgba(234, 88, 12, 0.1);
}
.btn-favorite:active {
transform: scale(1.1);
}
/* 已收藏的行 */
.favorited {
background: rgba(234, 88, 12, 0.05) !important;
border-left: 3px solid var(--orange);
}
.favorited .btn-favorite {
color: var(--orange);
}
/* 操作列样式优化 */
.col-link {
white-space: nowrap;
display: flex;
align-items: center;
gap: 0.5rem;
}
.col-link a {
color: white;
background: var(--accent);
text-decoration: none;
padding: 0.35rem 0.85rem;
border-radius: 6px;
transition: var(--transition);
display: inline-block;
font-size: 0.85rem;
font-weight: 500;
}
.col-link a:hover {
background: var(--accent-dim);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}
/* 结果计数样式 */
.result-count {
margin-left: auto;
color: var(--text-muted);
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 0;
}
/* 响应式优化 */
@media (max-width: 768px) {
.filter-group-search {
min-width: 100%;
}
.col-link {
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
}
.btn-favorite {
font-size: 1rem;
padding: 0.2rem 0.4rem;
}
}
/* ========== 分屏布局 ========== */
.split-layout {
display: grid;
grid-template-columns: 1fr 400px;
gap: 1.5rem;
align-items: start;
}
.split-left {
min-width: 0; /* 防止表格溢出 */
}
.split-right {
position: sticky;
top: 1.5rem;
max-height: calc(100vh - 3rem);
overflow-y: auto;
}
/* ========== 对比面板 ========== */
.comparison-panel {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
}
.comparison-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border);
background: var(--bg-elevated);
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.comparison-title {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 0.5rem;
}
.icon-compare {
color: var(--accent);
}
.btn-clear-comparison {
background: none;
border: none;
padding: 0.35rem;
cursor: pointer;
color: var(--text-muted);
border-radius: 4px;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
}
.btn-clear-comparison:hover {
background: var(--bg-card);
color: var(--red);
transform: scale(1.1);
}
.comparison-content {
padding: 1.25rem;
flex: 1;
overflow-y: auto;
}
/* 空状态 */
.comparison-empty {
text-align: center;
padding: 3rem 1.5rem;
color: var(--text-muted);
}
.empty-icon {
color: var(--border-hover);
margin-bottom: 1rem;
}
.empty-text {
margin: 0 0 0.5rem 0;
font-size: 1rem;
font-weight: 500;
color: var(--text);
}
.empty-hint {
margin: 0;
font-size: 0.85rem;
color: var(--text-muted);
}
/* 对比卡片 */
.comparison-cards {
display: flex;
flex-direction: column;
gap: 1rem;
}
.comparison-card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem;
position: relative;
transition: var(--transition);
}
.comparison-card:hover {
border-color: var(--accent);
box-shadow: 0 4px 12px rgba(3, 105, 161, 0.15);
}
.comparison-card-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 0.75rem;
}
.comparison-card-title {
flex: 1;
}
.comparison-provider {
font-weight: 600;
color: var(--text);
font-size: 0.95rem;
margin-bottom: 0.25rem;
}
.comparison-name {
font-size: 0.85rem;
color: var(--text-muted);
}
.btn-remove-comparison {
background: none;
border: none;
padding: 0.25rem;
cursor: pointer;
color: var(--text-muted);
border-radius: 4px;
transition: var(--transition);
flex-shrink: 0;
}
.btn-remove-comparison:hover {
background: rgba(220, 38, 38, 0.1);
color: var(--red);
}
.comparison-specs {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.comparison-spec {
display: flex;
flex-direction: column;
}
.spec-label {
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 0.15rem;
}
.spec-value {
font-family: var(--font-mono);
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
}
.spec-value.highlight-best {
color: var(--green);
}
.spec-value.highlight-worst {
color: var(--text-muted);
}
.comparison-price {
padding-top: 0.75rem;
border-top: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.price-label {
font-size: 0.85rem;
color: var(--text-muted);
}
.price-value {
font-family: var(--font-mono);
font-size: 1.1rem;
font-weight: 700;
color: var(--green);
}
.price-value.highlight-best {
color: var(--green);
background: rgba(5, 150, 105, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 4px;
}
/* 对比表格视图 */
.comparison-table-view {
display: none; /* 默认隐藏当有3个以上方案时显示 */
margin-top: 1rem;
}
.comparison-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.comparison-table th,
.comparison-table td {
padding: 0.5rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
.comparison-table th {
background: var(--bg-elevated);
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
}
.comparison-table td {
font-family: var(--font-mono);
font-size: 0.85rem;
}
.comparison-table .col-provider {
font-weight: 600;
color: var(--text);
}
.comparison-table .col-price {
font-weight: 700;
color: var(--green);
}
/* 响应式布局 */
@media (max-width: 1200px) {
.split-layout {
grid-template-columns: 1fr 350px;
}
}
@media (max-width: 1024px) {
.split-layout {
grid-template-columns: 1fr;
}
.split-right {
position: static;
max-height: none;
order: -1; /* 移动端对比面板显示在上方 */
}
.comparison-panel {
margin-bottom: 1.5rem;
}
}
@media (max-width: 768px) {
.comparison-specs {
grid-template-columns: 1fr;
}
.comparison-card {
padding: 0.875rem;
}
.comparison-content {
padding: 1rem;
}
.comparison-empty {
padding: 2rem 1rem;
}
}
/* 滚动条样式 */
.comparison-content::-webkit-scrollbar {
width: 6px;
}
.comparison-content::-webkit-scrollbar-track {
background: var(--bg-elevated);
}
.comparison-content::-webkit-scrollbar-thumb {
background: var(--border-hover);
border-radius: 3px;
}
.comparison-content::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* 动画效果 */
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.comparison-card {
animation: slideInRight 0.3s ease-out;
}
/* 最大对比数量提示 */
.comparison-limit-notice {
background: rgba(234, 88, 12, 0.1);
border: 1px solid var(--orange);
border-radius: var(--radius);
padding: 0.75rem 1rem;
margin-bottom: 1rem;
font-size: 0.85rem;
color: var(--orange);
display: flex;
align-items: center;
gap: 0.5rem;
}
.comparison-limit-notice svg {
flex-shrink: 0;
}
/* 修改主容器宽度以适应分屏布局 */
.main {
max-width: 1400px; /* 从 1200px 增加到 1400px */
}
/* ========== 增强对比可视化 ========== */
/* 差异百分比标签 */
.spec-diff {
font-size: 0.7rem;
color: var(--text-muted);
margin-top: 0.15rem;
}
.spec-diff.positive {
color: var(--green);
}
.spec-diff.negative {
color: var(--red);
}
/* 对比进度条 */
.comparison-bar {
width: 100%;
height: 4px;
background: var(--bg-elevated);
border-radius: 2px;
margin-top: 0.35rem;
overflow: hidden;
}
.comparison-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--green), var(--accent));
border-radius: 2px;
transition: width 0.3s ease;
}
.comparison-bar-fill.best {
background: var(--green);
}
.comparison-bar-fill.good {
background: var(--accent);
}
.comparison-bar-fill.average {
background: var(--orange);
}
.comparison-bar-fill.poor {
background: var(--red);
}
/* 颜色编码徽章 */
.spec-badge {
display: inline-block;
padding: 0.15rem 0.4rem;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 600;
margin-left: 0.35rem;
}
.spec-badge.best {
background: rgba(5, 150, 105, 0.15);
color: var(--green);
}
.spec-badge.good {
background: rgba(3, 105, 161, 0.15);
color: var(--accent);
}
.spec-badge.average {
background: rgba(234, 88, 12, 0.15);
color: var(--orange);
}
.spec-badge.poor {
background: rgba(220, 38, 38, 0.15);
color: var(--red);
}
/* 对比表格视图 */
.comparison-table-view {
display: none;
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 2px solid var(--border);
}
.comparison-table-view.active {
display: block;
}
.comparison-table-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
}
.comparison-table-title {
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 0.5rem;
}
.comparison-table-toggle {
background: var(--bg-elevated);
border: 1px solid var(--border);
padding: 0.35rem 0.75rem;
border-radius: 6px;
font-size: 0.8rem;
cursor: pointer;
transition: var(--transition);
color: var(--text);
}
.comparison-table-toggle:hover {
border-color: var(--accent);
background: var(--accent-glow);
}
.comparison-grid {
display: grid;
grid-template-columns: 120px repeat(auto-fit, minmax(150px, 1fr));
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.comparison-grid-cell {
background: var(--bg-card);
padding: 0.75rem;
display: flex;
flex-direction: column;
justify-content: center;
}
.comparison-grid-cell.header {
background: var(--bg-elevated);
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
}
.comparison-grid-cell.provider-header {
font-size: 0.85rem;
font-weight: 600;
color: var(--text);
text-transform: none;
letter-spacing: normal;
}
.comparison-grid-value {
font-family: var(--font-mono);
font-size: 0.85rem;
font-weight: 600;
color: var(--text);
}
.comparison-grid-value.highlight {
color: var(--green);
background: rgba(5, 150, 105, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 4px;
margin: -0.25rem -0.5rem;
}
/* 差异指示器 */
.diff-indicator {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
margin-top: 0.25rem;
}
.diff-indicator svg {
width: 12px;
height: 12px;
}
.diff-indicator.better {
color: var(--green);
}
.diff-indicator.worse {
color: var(--red);
}
.diff-indicator.same {
color: var(--text-muted);
}
/* 性价比评分 */
.value-score {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.value-score-label {
font-size: 0.8rem;
color: var(--text-muted);
}
.value-score-stars {
display: flex;
gap: 0.15rem;
}
.value-score-star {
width: 14px;
height: 14px;
color: var(--orange);
}
.value-score-star.empty {
color: var(--border-hover);
}
/* 响应式优化 */
@media (max-width: 768px) {
.comparison-grid {
grid-template-columns: 100px repeat(auto-fit, minmax(120px, 1fr));
font-size: 0.8rem;
}
.comparison-grid-cell {
padding: 0.5rem;
}
.comparison-table-view {
overflow-x: auto;
}
}
/* ========== 可折叠表格式对比面板 ========== */
/* 对比面板表格模式 */
.comparison-table-mode {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* 对比行 */
.comparison-row {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: var(--transition);
}
.comparison-row:hover {
border-color: var(--accent);
box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
}
/* 对比行头部(始终可见) */
.comparison-row-header {
display: grid;
grid-template-columns: 40px 1fr auto 40px;
align-items: center;
padding: 0.75rem 1rem;
cursor: pointer;
user-select: none;
gap: 0.75rem;
background: var(--bg-elevated);
transition: var(--transition);
}
.comparison-row-header:hover {
background: var(--bg-card);
}
.comparison-row.expanded .comparison-row-header {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
}
/* 展开/收起按钮 */
.comparison-toggle {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
transition: var(--transition);
}
.comparison-row.expanded .comparison-toggle {
transform: rotate(90deg);
color: var(--accent);
}
.comparison-toggle svg {
width: 16px;
height: 16px;
}
/* 服务器信息 */
.comparison-row-info {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
.comparison-row-provider {
font-weight: 600;
font-size: 0.95rem;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.comparison-row-name {
font-size: 0.8rem;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 快速预览(价格和评分) */
.comparison-row-preview {
display: flex;
align-items: center;
gap: 1rem;
}
.comparison-row-price {
font-family: var(--font-mono);
font-weight: 700;
font-size: 1rem;
color: var(--green);
white-space: nowrap;
}
.comparison-row-price.highlight-best {
background: rgba(5, 150, 105, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 4px;
}
.comparison-row-stars {
display: flex;
gap: 0.1rem;
}
.comparison-row-stars svg {
width: 14px;
height: 14px;
color: var(--orange);
}
.comparison-row-stars svg.empty {
color: var(--border-hover);
}
/* 移除按钮 */
.comparison-row-remove {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
border-radius: 4px;
transition: var(--transition);
}
.comparison-row-remove:hover {
background: rgba(220, 38, 38, 0.1);
color: var(--red);
}
.comparison-row-remove svg {
width: 16px;
height: 16px;
}
/* 对比行详情(可折叠) */
.comparison-row-details {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}
.comparison-row.expanded .comparison-row-details {
max-height: 500px;
}
.comparison-row-details-inner {
padding: 1rem;
}
/* 详情网格 */
.comparison-details-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}
.comparison-detail-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.comparison-detail-label {
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.comparison-detail-value {
font-family: var(--font-mono);
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 0.5rem;
}
.comparison-detail-value.highlight {
color: var(--green);
}
/* 详情进度条 */
.comparison-detail-bar {
width: 100%;
height: 4px;
background: var(--bg-elevated);
border-radius: 2px;
margin-top: 0.35rem;
overflow: hidden;
}
.comparison-detail-bar-fill {
height: 100%;
border-radius: 2px;
transition: width 0.3s ease;
}
.comparison-detail-bar-fill.best {
background: var(--green);
}
.comparison-detail-bar-fill.good {
background: var(--accent);
}
.comparison-detail-bar-fill.average {
background: var(--orange);
}
.comparison-detail-bar-fill.poor {
background: var(--red);
}
/* 差异标签 */
.comparison-diff-badge {
font-size: 0.7rem;
padding: 0.1rem 0.35rem;
border-radius: 3px;
font-weight: 600;
}
.comparison-diff-badge.positive {
background: rgba(5, 150, 105, 0.15);
color: var(--green);
}
.comparison-diff-badge.negative {
background: rgba(220, 38, 38, 0.15);
color: var(--red);
}
/* 操作按钮 */
.comparison-row-actions {
display: flex;
gap: 0.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.comparison-action-btn {
flex: 1;
padding: 0.5rem 1rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg-card);
color: var(--text);
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
text-decoration: none;
text-align: center;
}
.comparison-action-btn:hover {
border-color: var(--accent);
background: var(--accent);
color: white;
}
.comparison-action-btn.primary {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.comparison-action-btn.primary:hover {
background: var(--accent-dim);
}
/* 全部展开/收起按钮 */
.comparison-expand-all {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.5rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-muted);
font-size: 0.85rem;
cursor: pointer;
transition: var(--transition);
margin-bottom: 0.75rem;
}
.comparison-expand-all:hover {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-glow);
}
.comparison-expand-all svg {
width: 14px;
height: 14px;
}
/* 响应式 */
@media (max-width: 768px) {
.comparison-row-header {
grid-template-columns: 32px 1fr 32px;
padding: 0.65rem 0.75rem;
}
.comparison-row-preview {
flex-direction: column;
align-items: flex-start;
gap: 0.35rem;
}
.comparison-details-grid {
grid-template-columns: 1fr;
gap: 0.75rem;
}
.comparison-row-actions {
flex-direction: column;
}
}
/* ==================== v3.3 列表模式对比样式 ==================== */
/* 对比面板折叠控制 */
.comparison-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
border-bottom: 1px solid var(--border);
gap: 0.75rem;
}
.comparison-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1rem;
font-weight: 600;
color: var(--text);
margin: 0;
}
.icon-compare {
flex-shrink: 0;
}
.comparison-header-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-toggle-comparison {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
white-space: nowrap;
}
.btn-toggle-comparison:hover {
background: var(--bg-card);
border-color: var(--accent);
color: var(--accent);
}
.toggle-icon {
font-size: 0.75rem;
transition: transform 0.2s;
}
.btn-clear-comparison {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-muted);
cursor: pointer;
transition: var(--transition);
flex-shrink: 0;
}
.btn-clear-comparison:hover {
background: var(--red);
border-color: var(--red);
color: white;
}
/* 对比面板收起状态 */
.comparison-panel.collapsed .comparison-content {
display: none;
}
.comparison-panel.collapsed {
height: auto;
}
/* 对比表格容器 */
.comparison-table-wrapper {
overflow-x: auto;
padding: 1rem;
}
.comparison-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
background: var(--bg-card);
}
.comparison-table thead {
background: var(--bg-elevated);
position: sticky;
top: 0;
z-index: 10;
}
.comparison-table th {
padding: 0.75rem 0.5rem;
text-align: left;
font-weight: 600;
color: var(--text-muted);
border-bottom: 2px solid var(--border);
white-space: nowrap;
font-size: 0.8125rem;
}
.comparison-table tbody tr {
border-bottom: 1px solid var(--border);
transition: background-color 0.15s;
}
.comparison-table tbody tr:hover {
background: var(--bg-elevated);
}
.comparison-table tbody tr:last-child {
border-bottom: none;
}
.comparison-table td {
padding: 0.875rem 0.5rem;
color: var(--text);
vertical-align: middle;
}
/* 厂商单元格 */
.comparison-table .provider-cell {
font-weight: 600;
color: var(--accent);
}
/* 价格单元格 */
.comparison-table .price-cell {
font-weight: 700;
color: var(--green);
font-size: 0.9375rem;
white-space: nowrap;
}
/* 操作单元格 */
.comparison-table .action-cell {
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: flex-end;
}
.comparison-table .btn-visit {
padding: 0.375rem 0.75rem;
background: var(--accent);
color: white;
text-decoration: none;
border-radius: var(--radius);
font-size: 0.8125rem;
font-weight: 500;
transition: var(--transition);
white-space: nowrap;
cursor: pointer;
}
.comparison-table .btn-visit:hover {
background: var(--accent-dark);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(3, 105, 161, 0.2);
}
.comparison-table .btn-remove {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-muted);
font-size: 1rem;
cursor: pointer;
transition: var(--transition);
flex-shrink: 0;
}
.comparison-table .btn-remove:hover {
background: var(--red);
border-color: var(--red);
color: white;
}
/* 空状态样式 */
.comparison-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
text-align: center;
}
.empty-icon {
color: var(--text-muted);
opacity: 0.5;
margin-bottom: 1rem;
}
.empty-text {
font-size: 1rem;
color: var(--text);
margin: 0 0 0.5rem 0;
font-weight: 500;
}
.empty-hint {
font-size: 0.875rem;
color: var(--text-muted);
margin: 0;
}
/* 响应式设计 */
@media (max-width: 768px) {
.comparison-header {
flex-direction: column;
align-items: stretch;
gap: 0.75rem;
}
.comparison-header-actions {
justify-content: space-between;
}
.btn-toggle-comparison {
flex: 1;
justify-content: center;
}
.comparison-table-wrapper {
padding: 0.75rem;
}
.comparison-table {
font-size: 0.8125rem;
}
.comparison-table th,
.comparison-table td {
padding: 0.5rem 0.35rem;
}
.comparison-table .action-cell {
flex-direction: column;
align-items: stretch;
gap: 0.35rem;
}
.comparison-table .btn-visit {
width: 100%;
text-align: center;
}
}
/* 小屏幕优化 */
@media (max-width: 640px) {
.comparison-table {
font-size: 0.75rem;
}
.comparison-table th {
font-size: 0.75rem;
padding: 0.5rem 0.25rem;
}
.comparison-table td {
padding: 0.65rem 0.25rem;
}
/* 隐藏部分列以适应小屏幕 */
.comparison-table th:nth-child(6),
.comparison-table td:nth-child(6),
.comparison-table th:nth-child(7),
.comparison-table td:nth-child(7) {
display: none;
}
}
/* 打印样式 */
@media print {
.comparison-header-actions {
display: none;
}
.comparison-table .action-cell {
display: none;
}
.comparison-table tbody tr:hover {
background: transparent;
}
}
/* ==================== v3.4 滑动模式对比样式 ==================== */
/* 分屏布局 - 动态调整 */
.split-layout {
display: grid;
grid-template-columns: 1fr 400px;
gap: 1.5rem;
align-items: start;
transition: grid-template-columns 0.3s ease;
}
/* 对比面板隐藏时,左侧占满 */
.split-layout:has(.comparison-panel.hidden) {
grid-template-columns: 1fr 0px;
gap: 0;
}
/* 对比面板 - 滑动效果 */
.comparison-panel {
position: sticky;
top: 1.5rem;
max-height: calc(100vh - 3rem);
overflow-y: auto;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
transform: translateX(0);
opacity: 1;
transition: transform 0.3s ease, opacity 0.3s ease;
}
/* 对比面板隐藏状态 */
.comparison-panel.hidden {
transform: translateX(100%);
opacity: 0;
pointer-events: none;
width: 0;
min-width: 0;
padding: 0;
border: none;
overflow: hidden;
}
/* 对比面板显示状态 */
.comparison-panel.visible {
transform: translateX(0);
opacity: 1;
pointer-events: auto;
}
/* 浮动切换按钮 */
#floating-toggle-btn {
position: fixed;
right: 1.5rem;
top: 50%;
transform: translateY(-50%);
z-index: 100;
display: none;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 0.75rem;
background: var(--accent);
color: white;
border: none;
border-radius: var(--radius-lg);
box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
cursor: pointer;
transition: all 0.2s;
}
#floating-toggle-btn:hover {
background: var(--accent-dark);
transform: translateY(-50%) scale(1.05);
box-shadow: 0 6px 16px rgba(3, 105, 161, 0.4);
}
#floating-toggle-btn .icon {
font-size: 1.25rem;
}
#floating-toggle-btn .count-badge {
background: white;
color: var(--accent);
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.5rem;
border-radius: 12px;
min-width: 24px;
text-align: center;
}
/* 对比面板标题栏 */
.comparison-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
border-bottom: 1px solid var(--border);
gap: 0.75rem;
flex-shrink: 0;
}
.comparison-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1rem;
font-weight: 600;
color: var(--text);
margin: 0;
}
.comparison-header-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-toggle-comparison {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
white-space: nowrap;
}
.btn-toggle-comparison:hover {
background: var(--bg-card);
border-color: var(--accent);
color: var(--accent);
}
.btn-clear-comparison {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-muted);
cursor: pointer;
transition: var(--transition);
flex-shrink: 0;
}
.btn-clear-comparison:hover {
background: var(--red);
border-color: var(--red);
color: white;
}
/* 修复按钮对齐问题 */
.col-link {
white-space: nowrap;
}
.col-link .btn-star {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
margin-right: 0.5rem;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-muted);
font-size: 1.125rem;
cursor: pointer;
transition: var(--transition);
vertical-align: middle;
}
.col-link .btn-star:hover {
border-color: var(--orange);
color: var(--orange);
background: rgba(234, 88, 12, 0.1);
}
.col-link .btn-star.star-active {
border-color: var(--orange);
color: var(--orange);
background: rgba(234, 88, 12, 0.1);
}
.col-link .btn-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.375rem 0.75rem;
background: var(--accent);
color: white;
text-decoration: none;
border-radius: var(--radius);
font-size: 0.875rem;
font-weight: 500;
transition: var(--transition);
vertical-align: middle;
cursor: pointer;
}
.col-link .btn-link:hover {
background: var(--accent-dark);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(3, 105, 161, 0.2);
}
/* 响应式设计 */
@media (max-width: 1024px) {
.split-layout {
grid-template-columns: 1fr 350px;
}
.split-layout:has(.comparison-panel.hidden) {
grid-template-columns: 1fr 0px;
}
}
@media (max-width: 768px) {
.split-layout {
grid-template-columns: 1fr;
gap: 1rem;
}
.split-layout:has(.comparison-panel.hidden) {
grid-template-columns: 1fr;
}
.comparison-panel {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 90%;
max-width: 400px;
max-height: 100vh;
border-radius: 0;
z-index: 1000;
}
.comparison-panel.hidden {
transform: translateX(100%);
}
#floating-toggle-btn {
right: 1rem;
padding: 0.65rem;
}
.comparison-header {
flex-direction: column;
align-items: stretch;
gap: 0.75rem;
}
.comparison-header-actions {
justify-content: space-between;
}
.btn-toggle-comparison {
flex: 1;
justify-content: center;
}
}
/* 小屏幕优化 */
@media (max-width: 640px) {
.comparison-panel {
width: 100%;
max-width: 100%;
}
.col-link {
display: flex;
flex-direction: column;
gap: 0.35rem;
align-items: stretch;
}
.col-link .btn-star {
width: 100%;
margin-right: 0;
}
.col-link .btn-link {
width: 100%;
}
}
/* 打印样式 */
@media print {
#floating-toggle-btn {
display: none !important;
}
.comparison-panel.hidden {
display: none !important;
}
.btn-toggle-comparison,
.btn-clear-comparison {
display: none !important;
}
}
/* ==================== 联系方式优化样式 ==================== */
.contact-section {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
}
.contact-label {
font-size: 0.875rem;
color: var(--text-muted);
margin: 0;
font-weight: 500;
}
.contact-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.625rem 1.25rem;
background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
color: white;
text-decoration: none;
border-radius: var(--radius-lg);
font-weight: 500;
font-size: 0.9375rem;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
cursor: pointer;
}
.contact-link:hover {
background: linear-gradient(135deg, #006699 0%, #1a8ec0 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}
.contact-link:active {
transform: translateY(0);
}
.contact-icon {
flex-shrink: 0;
width: 20px;
height: 20px;
}
/* 响应式设计 */
@media (max-width: 640px) {
.contact-section {
margin-top: 1rem;
padding-top: 1rem;
}
.contact-link {
padding: 0.5rem 1rem;
font-size: 0.875rem;
}
.contact-icon {
width: 18px;
height: 18px;
}
}
/* 打印样式 */
@media print {
.contact-section {
display: none;
}
}
/* ==================== 浮动联系按钮 ==================== */
.floating-contact-btn {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
color: white;
border-radius: 50%;
box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
z-index: 1000;
animation: float-pulse 2s ease-in-out infinite;
}
.floating-contact-btn:hover {
background: linear-gradient(135deg, #006699 0%, #1a8ec0 100%);
transform: scale(1.1);
box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5);
}
.floating-contact-btn:active {
transform: scale(1.05);
}
.floating-contact-icon {
width: 28px;
height: 28px;
flex-shrink: 0;
}
/* 浮动脉冲动画 */
@keyframes float-pulse {
0%, 100% {
transform: translateY(0);
box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}
50% {
transform: translateY(-8px);
box-shadow: 0 8px 24px rgba(0, 136, 204, 0.5);
}
}
/* 响应式设计 */
@media (max-width: 768px) {
.floating-contact-btn {
bottom: 1.5rem;
right: 1.5rem;
width: 52px;
height: 52px;
}
.floating-contact-icon {
width: 26px;
height: 26px;
}
}
@media (max-width: 640px) {
.floating-contact-btn {
bottom: 1rem;
right: 1rem;
width: 48px;
height: 48px;
}
.floating-contact-icon {
width: 24px;
height: 24px;
}
}
/* 打印样式 */
@media print {
.floating-contact-btn {
display: none !important;
}
}
/* 减少动画(尊重用户偏好) */
@media (prefers-reduced-motion: reduce) {
.floating-contact-btn {
animation: none;
}
.floating-contact-btn:hover {
transform: none;
}
}
/* ==========================================================================
Commercial Refresh (2026-02)
========================================================================== */
:root {
--font-sans: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.homepage-body {
background:
radial-gradient(1100px 460px at 12% -12%, rgba(3, 105, 161, 0.08), transparent 62%),
radial-gradient(1000px 420px at 88% -18%, rgba(15, 23, 42, 0.08), transparent 64%),
var(--bg);
}
.homepage-body .header {
position: sticky;
top: 0;
z-index: 120;
backdrop-filter: blur(14px);
background: rgba(248, 250, 252, 0.88);
border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}
.homepage-body .header::before {
height: 1px;
opacity: 1;
background: linear-gradient(90deg, rgba(3, 105, 161, 0.22), rgba(15, 23, 42, 0.1), rgba(3, 105, 161, 0.22));
}
.homepage-body .header-brand {
gap: 0.9rem;
}
.homepage-body .site-logo {
width: clamp(172px, 22vw, 232px);
}
.homepage-body .tagline {
font-size: 0.82rem;
letter-spacing: 0.01em;
}
.homepage-body .header-nav a {
font-weight: 600;
color: #334155;
}
.homepage-body .header-nav a:hover {
color: #0f172a;
background: rgba(3, 105, 161, 0.1);
}
.homepage-main {
padding-top: 1.65rem;
padding-bottom: 2rem;
display: flex;
flex-direction: column;
gap: 1.15rem;
}
.hero-panel {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
gap: 1rem;
padding: 1.2rem;
border-radius: 16px;
border: 1px solid rgba(148, 163, 184, 0.28);
background:
linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
box-shadow:
0 1px 2px rgba(15, 23, 42, 0.08),
0 18px 36px rgba(15, 23, 42, 0.07);
}
.hero-copy {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.hero-kicker {
margin: 0;
display: inline-flex;
align-items: center;
width: fit-content;
font-size: 0.76rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #0f172a;
padding: 0.34rem 0.62rem;
border-radius: 999px;
background: rgba(3, 105, 161, 0.1);
border: 1px solid rgba(3, 105, 161, 0.2);
}
.hero-title {
margin: 0;
font-size: clamp(1.6rem, 3.1vw, 2.2rem);
line-height: 1.15;
letter-spacing: -0.02em;
color: #020617;
}
.hero-lede {
margin: 0;
color: #334155;
font-size: 0.98rem;
max-width: 66ch;
}
.hero-trust-row {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
}
.hero-trust-row span {
display: inline-flex;
align-items: center;
font-size: 0.76rem;
color: #334155;
padding: 0.35rem 0.6rem;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.36);
background: rgba(255, 255, 255, 0.75);
}
.hero-metrics {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.65rem;
}
.metric-card {
border-radius: 12px;
padding: 0.82rem 0.85rem;
background: rgba(255, 255, 255, 0.84);
border: 1px solid rgba(148, 163, 184, 0.3);
}
.metric-label {
margin: 0;
font-size: 0.75rem;
color: #64748b;
letter-spacing: 0.02em;
}
.metric-value {
margin: 0.28rem 0 0;
font-size: 1.32rem;
line-height: 1;
color: #020617;
font-weight: 700;
font-family: var(--font-mono);
}
.homepage-body .filters {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0.95rem;
padding: 1rem;
border-radius: 16px;
border: 1px solid rgba(148, 163, 184, 0.28);
background: rgba(255, 255, 255, 0.92);
box-shadow:
0 1px 2px rgba(15, 23, 42, 0.08),
0 14px 28px rgba(15, 23, 42, 0.06);
}
.homepage-body .filters:hover {
border-color: rgba(51, 65, 85, 0.28);
box-shadow:
0 1px 2px rgba(15, 23, 42, 0.08),
0 20px 34px rgba(15, 23, 42, 0.08);
}
.filters-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
}
.filters-title {
margin: 0;
font-size: 1.02rem;
letter-spacing: -0.01em;
color: #0f172a;
}
.filters-subtitle {
margin: 0.28rem 0 0;
color: #64748b;
font-size: 0.84rem;
}
.homepage-body .result-count {
margin: 0;
color: #0f172a;
font-size: 0.82rem;
font-weight: 600;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.3);
background: rgba(241, 245, 249, 0.9);
padding: 0.38rem 0.68rem;
}
.filter-grid {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: 0.66rem;
align-items: end;
}
.homepage-body .filter-group {
grid-column: span 2;
gap: 0.32rem;
}
.homepage-body .filter-group-search {
grid-column: span 3;
min-width: 0;
}
.filter-actions {
grid-column: span 1;
display: flex;
align-items: flex-end;
justify-content: flex-end;
}
.homepage-body .filter-group label {
text-transform: none;
letter-spacing: 0.01em;
font-size: 0.74rem;
color: #475569;
font-weight: 600;
}
.homepage-body .filter-group select,
.homepage-body .filter-group-search input {
min-height: 40px;
border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.45);
box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}
.homepage-body .filter-group select:hover,
.homepage-body .filter-group-search input:hover {
border-color: rgba(3, 105, 161, 0.45);
}
.homepage-body .btn-reset {
margin-left: 0;
min-height: 40px;
border-radius: 10px;
border: 1px solid #0f172a;
background: #0f172a;
color: #f8fafc;
font-weight: 600;
white-space: nowrap;
padding: 0.5rem 0.95rem;
}
.homepage-body .btn-reset:hover {
border-color: #020617;
background: #020617;
color: #f8fafc;
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}
.homepage-body .table-wrap {
border-radius: 16px;
border: 1px solid rgba(148, 163, 184, 0.28);
background: rgba(255, 255, 255, 0.96);
box-shadow:
0 1px 2px rgba(15, 23, 42, 0.08),
0 16px 28px rgba(15, 23, 42, 0.07);
}
.homepage-body .table-wrap::before {
display: none;
}
.table-wrap-head {
padding: 0.7rem 0.9rem;
border-bottom: 1px solid rgba(148, 163, 184, 0.24);
background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.55));
}
.table-caption {
margin: 0;
font-size: 0.78rem;
color: #64748b;
}
.homepage-body .price-table {
font-size: 0.88rem;
}
.homepage-body .price-table th {
position: sticky;
top: 0;
z-index: 3;
background: #f8fafc;
color: #475569;
}
.homepage-body .price-table tbody tr {
transition: background-color 0.2s ease;
}
.homepage-body .price-table tbody tr:hover {
background: rgba(241, 245, 249, 0.86);
transform: none;
box-shadow: none;
}
.homepage-body .price-table td.col-price {
color: #047857;
}
.homepage-body .price-table th.col-link,
.homepage-body .price-table td.col-link {
display: table-cell;
}
.homepage-body .price-table td.col-link {
white-space: nowrap;
}
.homepage-body .price-table .col-link a {
border-radius: 9px;
font-weight: 600;
}
.homepage-body .disclaimer {
margin-top: 0;
color: #64748b;
font-size: 0.78rem;
}
.homepage-body .footer {
border-top: 1px solid rgba(148, 163, 184, 0.3);
background: rgba(248, 250, 252, 0.88);
}
.floating-contact-btn {
right: 1.3rem;
bottom: 1.3rem;
width: 50px;
height: 50px;
border-radius: 14px;
border: 1px solid rgba(15, 23, 42, 0.14);
background: linear-gradient(145deg, #0f172a, #1e293b);
box-shadow: 0 12px 22px rgba(15, 23, 42, 0.24);
animation: none;
}
.floating-contact-btn:hover {
background: linear-gradient(145deg, #020617, #0f172a);
transform: translateY(-2px);
box-shadow: 0 16px 28px rgba(15, 23, 42, 0.26);
}
.floating-contact-btn:active {
transform: translateY(0);
}
.floating-contact-icon {
width: 24px;
height: 24px;
}
@media (max-width: 1024px) {
.hero-panel {
grid-template-columns: 1fr;
}
.hero-metrics {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filter-grid {
grid-template-columns: repeat(8, minmax(0, 1fr));
}
.homepage-body .filter-group {
grid-column: span 2;
}
.homepage-body .filter-group-search {
grid-column: span 4;
}
.filter-actions {
grid-column: span 2;
justify-content: flex-start;
}
}
@media (max-width: 768px) {
.homepage-main {
padding-top: 1.05rem;
gap: 0.9rem;
}
.hero-panel {
padding: 0.9rem;
border-radius: 14px;
}
.hero-title {
font-size: 1.52rem;
}
.hero-lede {
font-size: 0.9rem;
}
.hero-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filter-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.homepage-body .filter-group,
.homepage-body .filter-group-search,
.filter-actions {
grid-column: span 2;
}
.filter-actions {
justify-content: stretch;
}
.homepage-body .btn-reset {
width: 100%;
}
.homepage-body .price-table th,
.homepage-body .price-table td {
padding: 0.54rem 0.62rem;
}
.floating-contact-btn {
right: 1rem;
bottom: 1rem;
width: 46px;
height: 46px;
border-radius: 12px;
}
}
/* ==========================================================================
SEO + Compliance Sections
========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
outline: 2px solid #0369a1;
outline-offset: 2px;
}
.no-js-note {
margin: 0;
padding: 0.72rem 0.86rem;
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.3);
background: rgba(241, 245, 249, 0.9);
color: #334155;
font-size: 0.83rem;
}
.seo-faq {
border: 1px solid rgba(148, 163, 184, 0.3);
border-radius: 16px;
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 16px 26px rgba(15, 23, 42, 0.06);
padding: 1rem;
}
.seo-faq .section-head h2 {
margin: 0;
color: #020617;
font-size: 1.02rem;
}
.seo-faq .section-head p {
margin: 0.34rem 0 0;
color: #64748b;
font-size: 0.84rem;
}
.faq-grid {
margin-top: 0.78rem;
display: grid;
gap: 0.62rem;
}
.faq-item {
border: 1px solid rgba(148, 163, 184, 0.3);
border-radius: 12px;
background: #ffffff;
padding: 0.66rem 0.78rem;
}
.faq-item summary {
cursor: pointer;
font-weight: 600;
color: #0f172a;
list-style: none;
}
.faq-item summary::-webkit-details-marker {
display: none;
}
.faq-item p {
margin: 0.5rem 0 0;
color: #334155;
font-size: 0.88rem;
}
.commercial-cta {
border-radius: 16px;
border: 1px solid rgba(15, 23, 42, 0.14);
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: #f8fafc;
padding: 1rem;
}
.commercial-cta h2 {
margin: 0;
font-size: 1.08rem;
}
.commercial-cta p {
margin: 0.4rem 0 0;
color: rgba(226, 232, 240, 0.9);
font-size: 0.9rem;
}
.cta-actions {
margin-top: 0.78rem;
display: flex;
flex-wrap: wrap;
gap: 0.58rem;
}
.cta-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 38px;
border-radius: 10px;
padding: 0.48rem 0.84rem;
font-size: 0.86rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
}
.cta-btn-primary {
background: #0ea5e9;
color: #f8fafc;
}
.cta-btn-primary:hover {
background: #0284c7;
transform: translateY(-1px);
}
.cta-btn-secondary {
border: 1px solid rgba(226, 232, 240, 0.45);
color: #f8fafc;
}
.cta-btn-secondary:hover {
border-color: rgba(226, 232, 240, 0.8);
background: rgba(15, 23, 42, 0.28);
}
.footer-links {
margin: 0.5rem 0;
display: inline-flex;
flex-wrap: wrap;
gap: 0.7rem;
justify-content: center;
}
.footer-links a {
color: #334155;
text-decoration: none;
font-size: 0.82rem;
font-weight: 600;
}
.footer-links a:hover {
color: #0f172a;
text-decoration: underline;
}
.policy-page {
background:
radial-gradient(1100px 460px at 10% -10%, rgba(3, 105, 161, 0.07), transparent 60%),
radial-gradient(900px 430px at 90% -15%, rgba(15, 23, 42, 0.08), transparent 62%),
var(--bg);
}
.policy-shell {
max-width: 920px;
width: 100%;
margin: 0 auto;
padding-top: 1.25rem;
padding-bottom: 1.7rem;
}
.policy-card {
border-radius: 16px;
border: 1px solid rgba(148, 163, 184, 0.3);
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 14px 26px rgba(15, 23, 42, 0.07);
padding: 1.1rem;
}
.policy-card h1 {
margin: 0;
font-size: clamp(1.3rem, 2.5vw, 1.82rem);
letter-spacing: -0.02em;
}
.policy-updated {
margin: 0.45rem 0 1rem;
color: #64748b;
font-size: 0.85rem;
}
.policy-card section + section {
margin-top: 0.82rem;
}
.policy-card h2 {
margin: 0;
font-size: 0.95rem;
color: #0f172a;
}
.policy-card p {
margin: 0.38rem 0 0;
color: #334155;
font-size: 0.91rem;
line-height: 1.6;
}
.policy-card a {
color: #0369a1;
text-decoration: none;
}
.policy-card a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
.seo-faq,
.commercial-cta,
.policy-card {
border-radius: 14px;
padding: 0.9rem;
}
.cta-actions {
flex-direction: column;
}
.cta-btn {
width: 100%;
}
}