/* NameCheck 样式文件 - 现代工具风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 深蓝灰工具风格 */
    --primary-color: #1e40af;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* 背景色 */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 功能色彩 */
    --success-color: #059669;
    --success-light: #10b981;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --neutral-color: #64748b;
    
    /* 边框和分割线 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 圆角 - 硬朗工具风格 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #e2e8f0 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* 移动端优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 顶栏样式 */
.top-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    width: 28px;
    height: 28px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-title:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 底部导航栏样式 */
.bottom-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 20px 0;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: auto; /* 改为自动高度，避免不必要的空白 */
    overflow: visible; /* 允许内容溢出显示 */
}

/* 旧的语言切换样式已移到顶栏 */

/* 头部 - 简洁版本 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* FAQ 区域样式 */
.faq-section {
    margin: 40px 0 20px 0;
    padding: 0px;
}

.faq-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary); /* 降级支持 */
}

.faq-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.faq-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-content {
    max-width: 1000px; /* 与container等宽 */
    margin: 0 auto;
    padding: 0 20px; /* 与container的padding保持一致 */
}

.faq-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: left;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.expanded .faq-question::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-answer {
    padding: 0 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.expanded .faq-answer {
    padding: 20px 24px;
    max-height: 500px;
    opacity: 1;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Tab导航 - 书签式设计 */
.tab-navigation {
    display: flex;
    gap: 4px;
    margin-bottom: 2px;
    justify-content: flex-start;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    border-bottom: none;
}

.tab-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-item.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--border-color);
    z-index: 1;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-secondary);
}

.tab-text {
    font-size: 13px;
}

/* Tab内容区域 - 简化设计 */
.tab-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.tab-panel {
    display: none;
    padding: 24px;
}

.tab-panel.active {
    display: block;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px 0;
}

.tab-description {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
    font-weight: 400;
    margin: 0;
}

/* 配置区域 */
.config-section { display: none; }

.config-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 0px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.config-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

/* 搜索容器 - 大气简约设计 */
.search-container {
    display: flex;
    max-width: 100%;
    margin: 0;
    gap: 12px;
}

.search-input-wrapper {
    flex: 1;
    border: 2px solid #c4c7ce;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    padding: 0 20px;
}

.search-input-wrapper:hover {
    border-color: #a0a3a8;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.15);
}

.search-input {
    width: 100%;
    height: 48px;
    border: none;
    font-size: 16px;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    text-align: left;
}

/* 修复 Chrome 自动填充导致的淡蓝色背景问题（PC 和移动端） */
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--text-primary);
    caret-color: var(--text-primary);
    background-color: #ffffff !important;
}

.search-input::placeholder {
    color: #999;
    text-align: left;
}

.search-actions {
    display: flex;
}

.search-btn {
    height: 48px;
    padding: 0 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

/* 旧的搜索容器样式 - 保留作为备用 */
.old-search-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

/* 输入组 */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.domain-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.domain-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.input-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.btn-secondary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* 模块选择 */
.modules {
    margin-bottom: 25px;
}

.modules h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.module-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--bg-secondary);
}

.module-content {
    margin-left: 8px;
    flex: 1;
}

.module-content span {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.module-content small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.module-item:hover {
    border-color: var(--primary-light);
    background: var(--bg-tertiary);
}

.module-item input[type="checkbox"],
.module-item input[type="radio"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.module-item input[type="checkbox"]:checked + .checkmark,
.module-item input[type="radio"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.module-item input[type="checkbox"]:checked + .checkmark::after,
.module-item input[type="radio"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: block;
}

/* 搜索按钮 */
.search-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 进度条样式 - 与搜索框等宽 */
.progress-container {
    max-width: 800px; /* 与搜索框一致 */
    margin: 20px auto;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: 10px; /* 与搜索框一致 */
    box-shadow: var(--shadow-md); /* 与搜索框一致 */
    border: 1px solid var(--border-color); /* 与搜索框一致 */
}

.progress-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h4 {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

#progressPercent {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    display: block;
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: none; /* 隐藏步骤，只保留百分比 */
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.progress-step.completed {
    background: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}

.step-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

.step-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* 注册价格查询样式 - 简洁版 */
.module-keyword {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.registration-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding:0 15px;
    background: transparent;
}

.stat-item {
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item.available .stat-number {
    color: var(--success-color);
}

.stat-item.registered .stat-number {
    color: var(--neutral-color);
}

.stat-item.unknown .stat-number {
    color: var(--warning-color);
}

.stat-item.total .stat-number {
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.registration-list {
    background: var(--bg-secondary);

    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* 价格加载动画 */
.price-loading {
    color: var(--text-secondary);
    font-size: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.registration-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.registration-item:hover {
    background: var(--bg-tertiary);
}

.registration-item:last-child {
    border-bottom: none;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.domain-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.registration-item.available .domain-status-icon {
    background: #dcfce7;
    color: var(--success-color);
}

.registration-item.registered .domain-status-icon {
    background: var(--bg-tertiary);
    color: var(--neutral-color);
}

.registration-item.unknown .domain-status-icon {
    background: #fef3c7;
    color: var(--warning-color);
}

.domain-name {
    display: flex;
    align-items: center;
    gap: 2px;
}

.domain-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.2;
}

/* ✅ 未注册：绿色域名文字 */
.registration-item.available .domain-text {
    color: var(--success-color);
}

/* ✅ 已注册：灰色域名文字 */
.registration-item.registered .domain-text {
    color: var(--neutral-color);
}

/* ✅ 查询失败：橙色域名文字 */
.registration-item.unknown .domain-text {
    color: var(--warning-color);
}

.domain-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.year-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.domain-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.price-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.registration-item.available .price-text {
    color: var(--success-color);
}

.registration-item.registered .price-text {
    color: var(--neutral-color);
}

.premium-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-btn {
    background: var(--success-light);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background: var(--success-color);
    transform: translateY(-1px);
}

/* 域名状态显示区域 */
.domain-status-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 0 12px;
}

.domain-status-display .status-text {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

/* 未注册状态 - 绿色 */
.registration-item.available .domain-status-display .status-text {
    background: #dcfce7;
    color: var(--success-color);
}

/* 已注册状态 - 灰色 */
.registration-item.registered .domain-status-display .status-text {
    background: var(--bg-tertiary);
    color: var(--neutral-color);
}

/* 未知状态 - 黄色 */
.registration-item.unknown .domain-status-display .status-text {
    background: #fef3c7;
    color: var(--warning-color);
}

/* 恢复价格显示区域 */
.domain-price {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.domain-price .price-text,
.domain-price .status-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.domain-price .status-text {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 13px;
}

/* 未注册状态样式 */
.registration-item.available .domain-price .status-text {
    background: #dcfce7;
    color: var(--success-color);
}

/* 已注册状态样式 */
.registration-item.registered .domain-price .status-text {
    background: var(--bg-tertiary);
    color: var(--neutral-color);
}

/* 未知状态样式 */
.registration-item.unknown .domain-price .status-text {
    background: #fef3c7;
    color: var(--warning-color);
}

/* 价格加载gif样式 */
.price-loading-gif {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    opacity: 0.8;
}

/* 后缀配置按钮 - 新位置样式 */
.input-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
}

.input-actions .btn-secondary span {
    font-size: 14px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
}

.modal-body textarea {
    width: 100%;
    height: 200px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-body textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tld-hint {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin-top: 8px !important;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* 移动端优化 - APP化体验 */
@media (max-width: 768px) {
    /* 全屏布局 - 消除边距 */
    body {
        padding: 0;
        margin: 0;
        background: var(--bg-primary);
    }

    .container {
        max-width: none;
        padding: 10px 0;
        margin: 0;
    }

    /* 顶栏移动端优化 */
    .nav-container {
        padding: 0 16px;
        height: 56px;
    }

    .nav-logo {
        width: 24px;
        height: 24px;
    }

    .nav-title {
        font-size: 1.1rem;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* 底部导航栏移动端优化 */
    .footer-container {
        padding: 0 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-right {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link {
        font-size: 12px;
    }

    .copyright {
        font-size: 12px;
    }

    /* FAQ区域移动端优化 */
    .faq-section {
        margin: 20px 0 10px 0;
        padding: 0;
    }

    .faq-intro {
        margin: 0 16px 30px 16px;
        padding: 30px 20px;
        border-radius: var(--radius-lg);
    }

    .faq-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .faq-subtitle {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .faq-description {
        font-size: 0.95rem;
    }

    .faq-content {
        padding: 0 16px; /* 与移动端container的padding保持一致 */
    }

    .faq-section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .faq-item {
        margin-bottom: 12px;
        border-radius: var(--radius-md);
    }

    .faq-question {
        font-size: 1rem;
        padding: 16px 20px;
    }

    .faq-answer {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .faq-answer ul {
        padding-left: 16px;
    }

    /* 搜索容器 - 全宽 */
    .search-container {
        border-radius: 0;
        margin-bottom: 0;
        padding: 20px 16px;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }

    /* 模块选择 - 紧凑布局 */
    .modules {
        margin-bottom: 20px;
    }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .module-item {
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }

    /* 输入框优化 */
    .domain-input {
        min-height: 100px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    /* 按钮优化 */
    .search-btn {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }

    /* 结果区域 - 全宽 */
    .results-container {
        padding: 0;
        margin: 0;
    }

    .module-card {
        border-radius: 0;
        margin-bottom: 0;
        border: none;
        border-bottom: 8px solid var(--bg-primary);
        box-shadow: none;
    }

    .module-header {
        padding: 16px;
        border-radius: 0;
    }

    /* 注册列表 - 移动端优化 */
    .registration-stats {
        grid-template-columns: repeat(4, 1fr); /* 移动端显示4列统计 */
        margin: 0; /* 消除边距 */
        padding: 16px; /* 内边距 */
        gap: 8px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-light);
    }

    .stat-item {
        padding: 8px 4px; /* 更紧凑 */
        border-radius: var(--radius-sm);
        background: transparent;
        border: none;
        text-align: center;
    }

    .stat-number {
        font-size: 18px; /* 稍小字号 */
        font-weight: 700;
        line-height: 1;
        margin-bottom: 2px;
    }

    .stat-label {
        font-size: 10px; /* 更小字号 */
        font-weight: 500;
    }

    .registration-list {
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0; /* 消除边距 */
        background: var(--bg-secondary);
    }

    .registration-item {
        padding: 10px 12px; /* 更紧凑的内边距 */
        border-bottom: 1px solid var(--border-light);
        min-height: 44px; /* 固定最小高度，确保对齐 */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .domain-info {
        gap: 8px; /* 更小间距 */
        flex: 1;
        min-width: 0; /* 允许文本截断 */
        display: flex;
        align-items: center;
    }

    .domain-status-icon {
        width: 14px; /* 更小图标 */
        height: 14px;
        font-size: 9px;
        flex-shrink: 0;
    }

    .domain-name {
        min-width: 0; /* 允许文本截断 */
        flex: 1;
    }

    .domain-text {
        font-size: 13px; /* 更小字号 */
        font-weight: 600;
        line-height: 1.1;
        word-break: break-all; /* 长域名换行 */
        margin-bottom: 1px;
    }

    .domain-meta {
        font-size: 10px; /* 更小字号 */
        margin-top: 1px;
        gap: 4px;
        display: flex;
        align-items: center;
    }

    .year-badge {
        font-size: 8px; /* 更小徽章 */
        padding: 1px 3px;
    }

    .domain-price {
        flex-shrink: 0;
        min-width: 65px; /* 稍小的固定宽度 */
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    .price-text {
        font-size: 13px; /* 更小字号 */
        font-weight: 700;
        line-height: 1.1;
    }

    .premium-badge {
        font-size: 8px; /* 更小徽章 */
        padding: 2px 4px;
        margin-left: 4px;
    }

    .register-btn {
        padding: 3px 6px; /* 更紧凑的按钮 */
        font-size: 9px; /* 更小字号 */
        border-radius: 3px; /* 更小圆角 */
        margin-top: 1px;
        min-width: 40px; /* 最小宽度 */
        font-weight: 600;
    }

    /* 域名详情 - 移动端优化 */
    .domain-detail-view {
        border-radius: 0;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    .detail-tabs {
        border-radius: 0;
    }

    .tab-buttons {
        padding: 0 16px;
        background: var(--bg-secondary);
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tab-panel {
        padding: 16px;
        max-height: 400px;
    }

    /* 弹窗 - 移动端优化 */
    .modal-content {
        width: 95%;
        margin: 20px auto;
        border-radius: var(--radius-lg);
    }

    .modal-body textarea {
        height: 150px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    /* 进度条 - 移动端优化 */
    .progress-container {
        margin: 16px;
        border-radius: var(--radius-lg);
    }

    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 16px;
    }

    .progress-step {
        padding: 8px 4px;
        border-radius: var(--radius-sm);
    }

    .step-icon {
        font-size: 14px;
    }

    .step-text {
        font-size: 10px;
    }

    /* 移动端后缀配置按钮优化 */
    .input-actions .btn-secondary {
        padding: 10px 12px;
        font-size: 14px;
        gap: 6px;
    }

    .input-actions .btn-secondary span {
        font-size: 16px;
    }

}

/* 结果容器 */
.results-container {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    width: 100%;
    min-height: auto;
    overflow: visible;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 2px solid #f1f3f4;
}

.results-header h3 {
    color: #495057;
    font-size: 1.3rem;
}

.results-stats {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 结果列表 - 统一简洁样式 */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 移除高度限制，让内容自然展开 */
    /* max-height: 600px; */
    /* overflow-y: auto; */
    min-height: auto;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 50px;
}

/* 域名详情结果项的特殊样式 */
.result-item.domain-detail-item {
    display: block; /* 改为块级布局 */
    padding: 0; /* 移除内边距 */
    background: transparent; /* 移除背景 */
    border: none; /* 移除边框 */
    box-shadow: none; /* 移除阴影 */
}

.result-item.domain-detail-item:hover {
    transform: none; /* 禁用悬停效果 */
    border-color: transparent;
    box-shadow: none;
}

.result-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.result-item.error {
    border-color: #f5c6cb;
    background: #fff5f5;
}

.result-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.domain-name {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    word-break: break-all;
    line-height: 1.4;
}

.result-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    min-width: 70px;
}

.status-registered {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error,
.status-unknown {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.method-info {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    white-space: nowrap;
}

.price-info {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
}

.price-info .currency {
    color: #6c757d;
    font-size: 11px;
    margin-left: 2px;
}

.error-detail {
    font-size: 11px;
    color: #dc3545;
    margin-top: 4px;
    word-break: break-word;
    line-height: 1.3;
    opacity: 0.8;
}

.price-unavailable {
    color: #6c757d;
    font-style: italic;
    font-size: 11px;
}

.result-item-left {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.result-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* 统计卡片样式 */
.stats-card {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.stat-available {
    background: #d4edda;
    color: #155724;
}

.stat-registered {
    background: #fff3cd;
    color: #856404;
}

.stat-unknown {
    background: #f8d7da;
    color: #721c24;
}

.stat-checking {
    background: #cce7ff;
    color: #004085;
}

/* 域名详细视图样式 */
.domain-detail-view {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0; /* 移除外边距，避免与父容器冲突 */
    border: none; /* 移除边框，避免重复 */
}

.domain-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.domain-info-section, .domain-price-section {
    margin-bottom: 24px;
}

.domain-info-section h4, .domain-price-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 12px 0;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.info-grid, .price-grid {
    display: grid;
    gap: 12px;
}

.info-item, .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.info-item .label, .price-item .price-label {
    font-weight: 600;
    color: #495057;
}

.info-item .value, .price-item .price-value {
    font-weight: 500;
    color: #2c3e50;
}

.price-value.highlight {
    color: #27ae60;
    font-size: 18px;
    font-weight: 700;
}

.availability-info, .error-info {
    text-align: center;
    padding: 20px;
}

.status-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.status-icon {
    font-size: 24px;
}

.action-section {
    margin-top: 20px;
    text-align: center;
}

.register-btn-large {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.register-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

/* 按钮样式 */
.register-btn, .whois-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.register-btn {
    background: #28a745;
    color: white;
}

.register-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.whois-btn {
    background: #007bff;
    color: white;
}

.whois-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* 详细信息标签样式 */
.detail-tabs {
    margin-top: 24px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
    border-right: 1px solid #e1e5e9;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: #ffffff;
    color: #007bff;
    font-weight: 600;
}

.tab-content {
    background: #ffffff;
    flex: 1;
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 16px;
    height: 100%;
    overflow-y: auto;
    max-height: 400px;
}

.tab-panel.active {
    display: block;
}

.raw-data {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #495057;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 价格信息样式 */
.price-info {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.price-info.available {
    background: #d4edda;
    color: #155724;
}

.price-info.registered {
    background: #fff3cd;
    color: #856404;
}

.price-info.loading {
    background: #e2e3e5;
    color: #6c757d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-item-right {
        flex-wrap: wrap;
        gap: 6px;
    }
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-item-left,
    .result-item-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .result-item-right {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .input-actions {
        position: static;
        margin-top: 10px;
        justify-content: flex-end;
    }
}

/* SEO和安全检查结果样式 - 简洁设计 */
.seo-security-result {
    padding: 20px;
    overflow: visible;
    min-height: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 评分区域 - 简洁设计 */
.score-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.score-circle.score-a { background: #10b981; }
.score-circle.score-b { background: #3b82f6; }
.score-circle.score-c { background: #f59e0b; }
.score-circle.score-d { background: #ef4444; }
.score-circle.score-f { background: #6b7280; }

.score-number {
    font-size: 24px;
    line-height: 1;
}

.score-grade {
    font-size: 14px;
    opacity: 0.9;
}

.score-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #495057;
}

.score-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* 检查项列表 - 仿FindBlog简洁风格 */
.check-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    min-height: auto;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    transition: background-color 0.15s ease;
}

.check-item:hover {
    background: #f9fafb;
}

.check-item:last-child {
    border-bottom: none;
}

.check-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.check-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 检查项图标 */
.check-icon {
    font-size: 18px;
    line-height: 1;
}

.check-icon.success { color: #10b981; }
.check-icon.warning { color: #f59e0b; }
.check-icon.error { color: #ef4444; }

/* 检查项内容 */
.check-content {
    flex: 1;
    min-width: 0;
}

.check-name {
    font-weight: 500;
    color: #111827;
    font-size: 15px;
    margin: 0;
}

.check-result {
    color: #6b7280;
    font-size: 13px;
    margin: 2px 0 0 0;
    line-height: 1.4;
}

/* 状态标识 */
.check-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.check-status.success {
    color: #065f46;
    background: #d1fae5;
}

.check-status.warning {
    color: #92400e;
    background: #fef3c7;
}

.check-status.error {
    color: #991b1b;
    background: #fee2e2;
}

/* 建议提示 - 简化设计 */
.check-suggestion {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

/* 建议汇总 - 仿FindBlog风格 */
.suggestion-summary {
    margin-top: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.suggestion-summary h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.suggestion-summary p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.critical-suggestions,
.warning-suggestions {
    margin-bottom: 16px;
}

.critical-suggestions:last-child,
.warning-suggestions:last-child {
    margin-bottom: 0;
}

.suggestion-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-item.critical {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.suggestion-item.warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.error-message {
    padding: 20px;
    text-align: center;
    color: #dc3545;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
}

/* 模块卡片样式 */
.module-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: visible; /* 改为visible，允许内容溢出显示 */
    transition: all 0.3s ease;
    position: relative; /* 添加相对定位 */
    z-index: 1; /* 确保卡片在上层 */
}

.module-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.module-header {
    background: #1d4ed8;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.module-domain {
    font-size: 14px;
    opacity: 0.9;
    font-family: 'Monaco', 'Menlo', monospace;
}

.domain-info-content,
.seo-content,
.security-content {
    padding: 20px;
    overflow: visible; /* 确保内容可以完全显示 */
    min-height: auto;
}

.domain-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.domain-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item .label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.detail-item .value {
    color: #6c757d;
}

.availability-note,
.error-note {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
    margin-top: 2px;
    opacity: 0.8;
}

/* 注册项目中的错误提示 */
.registration-item .error-note {
    color: var(--warning-color);
    font-size: 11px;
    margin-top: 1px;
    font-weight: 500;
}

.domain-actions {
    margin-top: 16px;
}

.register-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: linear-gradient(135deg, #00a085, #00b7b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,184,148,0.3);
}

/* SEO和安全检查响应式设计 */
@media (max-width: 768px) {
    .score-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .score-circle {
        width: 60px;
        height: 60px;
    }
    
    .score-number {
        font-size: 20px;
    }
    
    .check-item {
        padding: 12px;
        gap: 8px;
    }
    
    .check-icon {
        font-size: 16px;
    }
    
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .domain-info-content,
    .seo-content,
    .security-content {
        padding: 16px;
    }
    
    .domain-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* 空结果样式 */
.empty-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-results h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.empty-results p {
    margin-bottom: 12px;
    font-size: 14px;
}

.empty-results ul {
    text-align: left;
    display: inline-block;
    margin: 0;
    padding-left: 20px;
}

.empty-results li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* Tab导航移动端适配 */
    .tab-navigation {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .tab-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tab-icon {
        font-size: 12px;
    }
    
    .tab-text {
        font-size: 11px;
    }
    
    .tab-panel {
        padding: 16px;
    }
    
    .tab-description {
        font-size: 12px;
        margin-bottom: 12px;
        max-width: 100%;
    }
    
    /* 配置区域移动端适配 */
    .config-section {
        max-width: 100%;
        padding: 0 16px;
    }
    
    /* 搜索容器移动端适配 */
    .search-container {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        padding: 0 16px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-input {
        height: 40px;
        font-size: 14px;
    }
    
    .config-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .search-actions {
        width: 100%;
        margin-left: 0;
    }
    
    .search-btn {
        width: 100%;
        height: 44px;
        justify-content: center;
        font-size: 14px;
    }
}

/* ========================================
   域名信息格式化展示样式
   ======================================== */

.domain-info-grid {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.info-row {
    display: grid;
    grid-template-columns: 40px 120px 1fr;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background-color: var(--bg-tertiary);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--radius-sm);
}

/* 域名标题行 */
.info-row.domain-header {
    padding: 16px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 8px;
}

.info-row.domain-header .domain-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.info-row.domain-header.available .domain-name {
    color: var(--success-color);
}

.info-row.domain-header.error .domain-name {
    color: var(--error-color);
}

/* 图标 */
.info-icon {
    font-size: 20px;
    text-align: center;
}

/* 标签 */
.info-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 值 */
.info-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-word;
}

/* 状态文本 */
.status-text-registered {
    color: var(--neutral-color);
    font-weight: 500;
}

.status-text-available {
    color: var(--success-color);
    font-weight: 600;
}

.status-text-error {
    color: var(--error-color);
    font-weight: 500;
}

/* 方法标签 */
.method-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* 错误消息 */
.error-message {
    color: var(--error-color);
    font-size: 13px;
}

/* 操作按钮行 */
.info-row.action-row {
    padding: 20px 0 0 0;
    border-bottom: none;
    grid-template-columns: 1fr;
}

.info-row.action-row:hover {
    background: transparent;
}

.register-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.register-btn:active {
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 32px 100px 1fr;
        padding: 10px 0;
    }
    
    .info-icon {
        font-size: 18px;
    }
    
    .info-label {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    .info-row.domain-header .domain-name {
        font-size: 16px;
    }
    
    .domain-info-grid {
        padding: 16px;
    }
}

/* ========================================
   WHOIS Modal 样式
   ======================================== */

/* WHOIS图标按钮 */
.whois-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 8px;
    transition: all 0.2s ease;
    opacity: 0.6;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.whois-icon-btn svg {
    color: #6b7280;
    transition: color 0.2s ease;
}

.whois-icon-btn:hover {
    opacity: 1;
    background: rgba(59, 130, 246, 0.1);
}

.whois-icon-btn:hover svg {
    color: #3b82f6;
}

/* Modal遮罩层 */
.whois-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whois-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Modal背景遮罩 */
.whois-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Modal内容容器 */
.whois-modal-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal头部 */
.whois-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    background: #222;
}

.whois-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
}

/* 关闭按钮 */
.whois-modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.whois-modal-close:hover {
    background: #333;
    color: #fff;
}

/* Modal主体内容 */
.whois-modal-content-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: #1a1a1a;
}

/* WHOIS信息网格 */
.whois-info-grid {
    display: grid;
    gap: 16px;
}

.whois-info-item {
    background: #252525;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.whois-info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
}

.whois-info-value {
    font-size: 14px;
    color: #e5e7eb;
    word-break: break-all;
    line-height: 1.6;
}

.whois-info-value a {
    color: #3b82f6;
    text-decoration: none;
}

.whois-info-value a:hover {
    text-decoration: underline;
}

/* 简洁版WHOIS信息 */
.whois-compact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whois-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.whois-row:last-child {
    border-bottom: none;
}

.whois-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    min-width: 70px;
}

.whois-value {
    font-size: 13px;
    color: #e5e7eb;
    text-align: right;
    word-break: break-word;
    max-width: 250px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

/* WHOIS弹窗中的链接样式 - 与普通文字颜色一致 */
.whois-value a {
    color: #e5e7eb !important;
    text-decoration: none;
}

.whois-value a:hover {
    color: #f3f4f6 !important;
    text-decoration: underline;
}

/* Loading状态 */
.whois-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #999;
}

/* 错误状态 */
.whois-error {
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #ef4444;
}

/* 无数据状态 */
.whois-no-data {
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #f59e0b;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .whois-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .whois-modal-header {
        padding: 16px 20px;
    }
    
    .whois-modal-header h3 {
        font-size: 16px;
    }
    
    .whois-modal-content-body {
        padding: 20px;
    }
    
    .whois-info-item {
        padding: 10px 14px;
    }
    
    .whois-icon-btn {
        font-size: 18px;
        padding: 4px 6px;
    }
}

/* 滚动条样式 */
.whois-modal-content-body::-webkit-scrollbar {
    width: 8px;
}

.whois-modal-content-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.whois-modal-content-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.whois-modal-content-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}
