/* ==================== 全局重置：禁用不必要的伪元素 ==================== */
*::before,
*::after {
    display: none !important;
    content: none !important;
}

/* ==================== CSS变量定义 ==================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e5e5e5;
    --border-hover: #d0d0d0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-hover-bg: #fafafa;
    --accent-black: #1a1a1a;
    --accent-black-light: #2a2a2a;
    --accent-black-dark: #0a0a0a;
    --accent-hover: #333333;
    --success: #00c851;
    --warning: #ffbb33;
    --danger: #ff4444;
    --premium: #d4af37;
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
    --card-bg: #1a1a1a;
    --card-hover-bg: #222222;
    --accent-black: #ffffff;
    --accent-black-light: #f5f5f5;
    --accent-black-dark: #e5e5e5;
    --accent-hover: #cccccc;
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== 顶栏 ==================== */
.top-bar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="dark"] .top-bar {
    background: rgba(10, 10, 10, 0.85);
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.announcement:hover {
    color: var(--text-primary);
}

.announcement svg {
    width: 18px;
    height: 18px;
}

.announcement-text {
    font-size: 14px;
}

.top-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.top-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.top-nav a:hover {
    color: var(--text-primary);
}

/* ==================== Logo区域 ==================== */
.header-section {
    background: var(--bg-primary);
    padding: 100px 24px;
    text-align: center;
}

.logo-container {
    max-width: 600px;
    margin: 0 auto;
}

.logo-text {
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 3px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.domain-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .domain-count-badge {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.domain-count-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#domainCount {
    white-space: nowrap;
}

/* ==================== 主体内容 ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px 0px 24px;
}

/* ==================== 域名网格 ==================== */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.domain-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.domain-card:hover {
    transform: translateY(-4px);
    border: 1px solid #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

[data-theme="dark"] .domain-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .domain-card:hover {
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.domain-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-featured {
    background: #fff9e6;
    color: #b8860b;
}

[data-theme="dark"] .badge-featured {
    background: rgba(212, 175, 55, 0.15);
    color: var(--premium);
}

.badge-new {
    background: #e6f9f0;
    color: #00864a;
}

[data-theme="dark"] .badge-new {
    background: rgba(0, 200, 81, 0.15);
    color: var(--success);
}

.badge-special {
    background: #dfdfdf;
    color: #000000;
}

[data-theme="dark"] .badge-special {
    background: rgba(255, 187, 51, 0.15);
    color: var(--warning);
}

.badge-flash {
    background: #ffe6e6;
    color: #cc0000;
}

[data-theme="dark"] .badge-flash {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
}

.domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.domain-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0;
    word-break: break-all;
    letter-spacing: -0.5px;
}

.domain-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.domain-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin: 20px 0;
    font-size: 12px;
    font-weight: 600;
}

.rating-icon {
    width: 14px;
    height: 14px;
    color: var(--premium);
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: transparent;
    color: var(--text-primary);
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    font-weight: 600;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.btn-large {
    padding: 16px 48px;
    font-size: 15px;
    border-radius: 6px;
    display: inline-block;
}

.btn-primary.btn-large {
    background: #0000CD;
    border-color: #0000CD;
}

.btn-primary.btn-large:hover {
    background: #0000B3;
    border-color: #0000B3;
    box-shadow: 0 4px 12px rgba(0, 0, 205, 0.3);
}

[data-theme="dark"] .btn-primary {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background: #cccccc;
    border-color: #cccccc;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn-primary.btn-large {
    background: #0000CD;
    color: #ffffff;
    border-color: #0000CD;
}

[data-theme="dark"] .btn-primary.btn-large:hover {
    background: #0000B3;
    border-color: #0000B3;
    box-shadow: 0 4px 12px rgba(0, 0, 205, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #e5e5e5;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
    background: #f5f5f5;
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-secondary {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-secondary:hover {
    border-color: #ffffff;
    background: #2a2a2a;
}

/* ==================== 主题切换器 - 底部位置 ==================== */
.theme-switcher {
    position: relative;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.theme-toggle-btn:hover {
    color: #ffffff;
}

.theme-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.theme-toggle-text {
    display: inline-block;
}

.theme-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.theme-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.theme-option:first-child {
    border-radius: 8px 8px 0 0;
}

.theme-option:last-child {
    border-radius: 0 0 8px 8px;
}

.theme-option:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.theme-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-option.active {
    color: var(--accent-black);
    background: var(--bg-tertiary);
}

.theme-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
    stroke: currentColor;
}

.theme-option-text {
    flex: 1;
}

.theme-option-check {
    width: 16px;
    height: 16px;
    opacity: 0;
    color: inherit;
}

.theme-option.active .theme-option-check {
    opacity: 1;
}

/* 浅色模式下的主题选项样式修复 */
html[data-theme="light"] .theme-option,
html:not([data-theme]) .theme-option {
    color: #666666;
}

html[data-theme="light"] .theme-option:hover,
html:not([data-theme]) .theme-option:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

html[data-theme="light"] .theme-option.active,
html:not([data-theme]) .theme-option.active {
    color: #1a1a1a;
    background: #f5f5f5;
}

html[data-theme="light"] .theme-option svg,
html:not([data-theme]) .theme-option svg {
    color: #666666;
    stroke: #666666;
}

html[data-theme="light"] .theme-option:hover svg,
html:not([data-theme]) .theme-option:hover svg {
    color: #1a1a1a;
    stroke: #1a1a1a;
}

html[data-theme="light"] .theme-option.active svg,
html:not([data-theme]) .theme-option.active svg {
    color: #1a1a1a;
    stroke: #1a1a1a;
}

/* 深色模式下的主题选项样式 */
html[data-theme="dark"] .theme-option {
    color: #b0b0b0;
}

html[data-theme="dark"] .theme-option:hover {
    color: #ffffff;
    background: #2a2a2a;
}

html[data-theme="dark"] .theme-option.active {
    color: #ffffff;
    background: #2a2a2a;
}

html[data-theme="dark"] .theme-option svg {
    color: #b0b0b0;
    stroke: #b0b0b0;
}

html[data-theme="dark"] .theme-option:hover svg {
    color: #ffffff;
    stroke: #ffffff;
}

html[data-theme="dark"] .theme-option.active svg {
    color: #ffffff;
    stroke: #ffffff;
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: auto;
}

[data-theme="dark"] .modal {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.modal-body {
    padding: 32px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: var(--bg-secondary);
}

.detail-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.domain-intro {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 6px;
    margin: 24px 0;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.domain-intro:hover {
    background: var(--bg-secondary);
}

.domain-intro-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.domain-intro-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-black);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.form-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.form-note a {
    color: var(--accent-black);
    text-decoration: none;
    font-weight: 500;
}

.form-note a:hover {
    text-decoration: underline;
}

/* ==================== 优势区域 ==================== */
.advantages-section,
.contact-section {
    background: var(--bg-secondary);
    padding: 100px 24px;
    border-top: 1px solid var(--border-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.advantage-item {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #1a1a1a;
}

[data-theme="dark"] .advantage-item:hover {
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--accent-black);
}

[data-theme="dark"] .advantage-icon {
    color: #4169E1;
}

.advantage-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.advantage-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 联系区域 ==================== */
.contact-section {
    background: var(--bg-primary);
}

.contact-button-wrapper {
    text-align: center;
}

/* ==================== 友情链接区域 ==================== */
.friends-link-section {
    background: var(--bg-secondary);
    padding: 50px 24px;
    border-top: 1px solid var(--border-color);
}

.friends-link-title {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.friends-link-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 2;
}

.friend-link {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.friend-link:hover {
    color: var(--text-primary);
}

.link-separator {
    color: var(--text-tertiary);
    font-size: 13px;
    margin: 0 12px;
    user-select: none;
}

/* ==================== Footer（黑色背景） ==================== */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo-section {
    padding-right: 24px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: #999999;
    line-height: 1.8;
}

.footer-column-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999999;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: #666666;
}

.footer-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav-link:hover {
    color: #ffffff;
}

.footer-nav-icon {
    width: 16px;
    height: 16px;
}



/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .domain-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-logo-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .announcement {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .announcement-text {
        display: none;
    }
    
    .top-nav {
        gap: 16px;
        flex-shrink: 0;
    }
    
    .top-nav a {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .logo-text {
        font-size: 32px;
    }
    
    .domain-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
    }
    
    .domain-card {
        margin: 0;
        width: 100%;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* 友情链接移动端优化 */
    .friends-link-section {
        padding: 40px 20px;
    }
    
    .friends-link-title {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .friends-link-wrapper {
        line-height: 1.8;
    }
    
    .friend-link {
        font-size: 12px;
    }
    
    .link-separator {
        font-size: 12px;
        margin: 0 8px;
    }
    
    /* Footer移动端优化 - 紧凑布局 */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .footer-logo-section {
        text-align: left;
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-column-title {
        margin-bottom: 12px;
        font-size: 11px;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
    
    .footer-links a {
        font-size: 13px;
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    /* 移动端主题切换器优化 */
    .theme-toggle-text {
        display: none;
    }
    
    .modal-header,
    .modal-body {
        padding: 24px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .form-footer {
        flex-direction: column;
    }
    
    .header-section {
        padding: 60px 20px;
    }
    
    .main-content {
        padding: 10px 0 0 0;
    }

}

@media (max-width: 480px) {
    .logo-text {
        font-size: 24px;
        word-break: keep-all;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .domain-name {
        font-size: 24px;
    }
    
    .footer-main {
        padding: 30px 16px;
    }
    
    .footer-nav {
        gap: 16px;
    }
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-card,
.advantage-item {
    animation: fadeIn 0.4s ease forwards;
}

/* ==================== 打印样式 ==================== */
@media print {
    .domain-card {
        break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ==================== 高对比度模式 ==================== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* ==================== 减少动画模式 ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 通知提示样式 ==================== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-message {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.notification-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-tertiary);
    transition: var(--transition);
    border-radius: 4px;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.notification-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success .notification-icon {
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-error .notification-icon {
    color: var(--danger);
}

.notification-info {
    border-left: 4px solid #0000CD;
}

.notification-info .notification-icon {
    color: #0000CD;
}

.notification-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

@media (max-width: 768px) {
    .notification {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes fadeOut {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
            transform: translateY(-100px);
        }
    }
}

/* ==================== 返回顶部按钮 - 圆形设计 ==================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    z-index: 998;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: #333333;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.25);
}

.back-to-top:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-1px);
}

[data-theme="dark"] .back-to-top {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .back-to-top:hover {
    background: #f5f5f5;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* 移动端优化 - 圆形按钮 */
@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
    
    /* 移动端悬停状态优化 */
    .back-to-top:hover {
        transform: none;
        background: #1a1a1a;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .back-to-top:hover svg {
        transform: none;
    }
    
    [data-theme="dark"] .back-to-top:hover {
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    /* 移动端点击反馈 */
    .back-to-top:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
    }
    
    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1440px) {
    .back-to-top {
        right: 24px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1920px) {
    .back-to-top {
        right: calc((100vw - 1400px) / 2 - 80px);
    }
}

/* 无障碍访问优化 */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.3s ease;
    }
    
    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top:hover svg {
        transform: none;
    }
}

/* 确保按钮不会与弹窗重叠 */
.modal-open .back-to-top {
    z-index: 9998;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .back-to-top {
        border: 2px solid currentColor;
    }
    
    [data-theme="dark"] .back-to-top {
        border: 2px solid currentColor;
    }
}


/* ==================== 分页控件 ==================== */
.pagination-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 24px 100px 24px; /* 减少顶部内边距，从60px改为30px */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* 减少间距 */
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--accent-black);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pagination-prev {
    order: 1;
}

.pagination-next {
    order: 3;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    order: 2;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 12px;
}

.pagination-page:hover:not(.active):not(.ellipsis) {
    background: var(--bg-tertiary);
    border-color: var(--accent-black);
    transform: translateY(-1px);
}

.pagination-page.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .pagination-page.active {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

.pagination-page.ellipsis {
    background: transparent;
    border: none;
    cursor: default;
    transform: none !important;
    color: var(--text-tertiary);
    min-width: auto;
    padding: 0 8px;
}

/* 域名卡片翻页动画 */
.domain-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-card.fade-out {
    animation: cardFadeOut 0.4s ease forwards;
}

@keyframes cardFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 移动端分页优化 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 0px 16px 80px 16px; /* 移动端也减少间距 */
        gap: 0px;
    }
    
    .pagination-controls {
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        min-width: 80px;
        font-size: 13px;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-btn svg {
        margin: 0;
    }
    
    .pagination-page {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 13px;
        margin-bottom: 4px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .pagination-container {
        padding: 0px 12px 60px 12px; /* 进一步减少间距 */
    }
    
    .pagination-pages {
        gap: 2px;
    }
    
    .pagination-page {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        min-width: 70px;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .pagination-btn,
    .pagination-page,
    .domain-card {
        transition: opacity 0.3s ease;
        animation: none;
    }
    
    .pagination-btn:hover:not(:disabled),
    .pagination-page:hover:not(.active):not(.ellipsis) {
        transform: none;
    }
    
    .pagination-page.active {
        transform: none;
    }
    
    .domain-card {
        opacity: 1;
        transform: none;
    }
}

/* ==================== 移动端触摸优化 ==================== */
/* 移除所有交互元素的默认蓝色高亮 */
.domain-card,
.btn,
.pagination-btn,
.pagination-page,
.modal-close,
.theme-toggle-btn,
.theme-option,
.announcement,
.footer-nav-link,
.friend-link,
.top-nav a {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* 为移动端添加自定义触摸反馈 */
@media (max-width: 768px) {
    /* 域名卡片的触摸反馈 */
    .domain-card {
        transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
    }
    
    .domain-card:active {
        transform: scale(0.99);
        background: var(--bg-tertiary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 按钮的触摸反馈 */
    .btn:active,
    .pagination-btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    /* 分页页码的触摸反馈 */
    .pagination-page:active {
        transform: scale(0.95);
        background: var(--bg-tertiary);
    }
    
    /* 其他交互元素的触摸反馈 */
    .modal-close:active,
    .theme-toggle-btn:active,
    .theme-option:active,
    .announcement:active,
    .footer-nav-link:active,
    .top-nav a:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* 返回顶部按钮的触摸反馈 */
    .back-to-top:active {
        transform: scale(0.9);
    }
}

/* 深色模式下的触摸反馈优化 */
[data-theme="dark"] .domain-card:active {
    background: #222222;
}

[data-theme="dark"] .pagination-page:active {
    background: #2a2a2a;
}

/* 确保链接和按钮在移动端有良好的触摸体验 */
a, button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation; /* 改善触摸响应 */
}

/* 保留表单元素的文本选择能力 */
.form-input,
.form-textarea,
.domain-name {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .domain-card:active,
    .btn:active,
    .pagination-btn:active,
    .pagination-page:active,
    .modal-close:active,
    .theme-toggle-btn:active,
    .theme-option:active,
    .announcement:active,
    .footer-nav-link:active,
    .top-nav a:active,
    .back-to-top:active {
        transform: none !important;
    }
}

/* ==================== Header 搜索触发按钮 ==================== */
.header-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.search-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-trigger-btn svg {
    width: 14px;
    height: 14px;
}

.search-trigger-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.search-trigger-btn.is-active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ==================== 搜索浮层 ==================== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9800;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    pointer-events: none;
    visibility: hidden;
}

.search-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* 半透明遮罩 */
.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .24s ease;
}

.search-overlay.is-open .search-backdrop {
    opacity: 1;
}

/* 搜索面板 */
.search-panel {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .3s cubic-bezier(.22,.61,.36,1),
                opacity .25s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.search-overlay.is-open .search-panel {
    transform: translateY(0);
    opacity: 1;
}

.search-panel-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 24px 20px;
}

/* 输入行 */
.search-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: border-color .2s, box-shadow .2s;
}

.search-input-row:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(26,26,26,.07);
}

[data-theme="dark"] .search-input-row:focus-within {
    box-shadow: 0 0 0 3px rgba(255,255,255,.07);
}

.search-panel-icon {
    width: 17px;
    height: 17px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-panel-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    padding: 10px 0;
    min-width: 0;
}

.search-panel-input::placeholder {
    color: var(--text-tertiary);
    font-size: 15px;
}

.search-panel-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    border-radius: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-panel-clear:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.search-panel-clear svg { width: 14px; height: 14px; display: block; }

.search-panel-close {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.search-panel-close:hover { background: var(--border-color); color: var(--text-primary); }
.search-panel-close svg { width: 13px; height: 13px; display: block; }
.search-close-hint {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
    opacity: .65;
}

/* 筛选行 */
.search-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.search-filter-label {
    font-size: 12.5px;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-pill {
    padding: 5px 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: none;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

/* 结果提示 */
.search-result-hint {
    font-size: 12.5px;
    color: var(--text-tertiary);
    margin-top: 10px;
    min-height: 16px;
    transition: opacity .2s;
}

/* ==================== 骨架屏 ==================== */
@keyframes skeleton-shine {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.skeleton-card {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    min-height: 200px;
    border-radius: 12px;
}

.skeleton-card::after {
    display: block !important;
    content: '' !important;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 800px 100%;
    animation: skeleton-shine 1.4s ease-in-out infinite;
    border-radius: inherit;
}

/* ==================== 顶栏滚动阴影 ==================== */
.top-bar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

[data-theme="dark"] .top-bar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 640px) {
    .search-panel-inner { padding: 16px 16px 14px; }
    .search-panel-input { font-size: 15px; }
    .search-close-hint { display: none; }
    .search-trigger-text { display: none; }
    .search-trigger-btn { padding: 7px 10px; }
    .header-tools { gap: 10px; }
}
