/* 基础样式设置 */
:root {
    --primary: #2563EB; /* 主色调-深蓝色（专业、信任） */
    --secondary: #7C3AED; /* 辅助色-深紫色（创新、智慧） */
    --accent: #F59E0B; /* 强调色-金色（成功、活力） */
    --dark: #1F2937; /* 深色文字 */
    --light: #F8F9FA; /* 浅色背景 */
    --success: #10B981; /* 成功色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: white;
    color: var(--dark);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

.logo a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.logo a:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* 主横幅样式 */
.hero {
    background: url('../pic/bj1.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-description {
    white-space: nowrap;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

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

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

/* 功能区域样式 */
.section {
    padding: 1rem 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

/* 起名工具样式 */
.naming-tool {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group label[for="legalName"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-group label .required {
    color: #ff0000;
    margin-left: 2px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* 表单按钮区域 */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-buttons .btn {
    flex: 1;
    width: auto;
    white-space: nowrap;
}

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

.btn-secondary:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* 结果展示样式 */
.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.name-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.name-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.name-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.name-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.name-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

/* 底部样式 */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-description {
        white-space: normal;
    }
}

/* 日期选择器样式 - 使用主题颜色 */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-wrapper .form-control {
    padding: 12px 40px 12px 12px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.date-input-wrapper .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    pointer-events: none;
}

.calendar-icon:hover {
    color: var(--primary);
}

/* 模态框基础样式 */
.date-picker-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.date-picker-modal.active {
    transform: translateY(0);
}

.date-picker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.date-picker-backdrop.active {
    display: block;
}

/* 选择器头部 */
.date-picker-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.date-picker-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.date-picker-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 搜索框包装器 */
.industry-search-wrapper {
    position: relative;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.industry-search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

/* 行业搜索输入框 */
.industry-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.industry-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.industry-search-wrapper:focus-within .industry-search-icon {
    color: var(--primary);
}

/* 搜索结果列表 */
.industry-search-results {
    height: 240px;
    overflow-y: auto;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: all 0.3s ease;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto;
}

.search-results-list li {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    font-size: 15px;
    color: var(--dark);
}

.search-results-list li:hover {
    background: #f8f9fa;
}

.search-results-list li:last-child {
    border-bottom: none;
}

.search-results-list li.highlight {
    background: #EFF6FF;
    color: var(--primary);
    font-weight: 500;
}

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

.date-picker-cancel {
    background: #f5f5f5;
    color: #666;
}

.date-picker-cancel:hover {
    background: #e0e0e0;
}

.date-picker-confirm {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.date-picker-confirm:hover {
    background: #1D4ED8;
}

/* 日历信息栏 */
.calendar-info {
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* 滚轮容器 */
.wheel-wrapper {
    display: flex;
    height: 240px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wheel-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.wheel-scroll {
    list-style: none;
    position: absolute;
    width: 100%;
    top: 100px;
    transition: transform 0.1s ease-out;
    padding: 0;
    z-index: 5;
}

.wheel-item {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
    color: #888;
    line-height: 40px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
}

.wheel-item.active {
    color: var(--dark) !important;
    font-weight: 600;
    z-index: 20;
    position: relative;
}

.wheel-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.9) 0%, 
        rgba(255,255,255,0) 25%, 
        rgba(255,255,255,0) 75%, 
        rgba(255,255,255,0.9) 100%);
    z-index: 10;
}

.wheel-highlight {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 40px;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* 每个滚轮列使用不同的主题颜色高亮 - 公司起名主题配色 */
.wheel-column:nth-child(1) .wheel-highlight {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.wheel-column:nth-child(2) .wheel-highlight {
    background: #F3E8FF;
    border: 1px solid #DDD6FE;
}

.wheel-column:nth-child(3) .wheel-highlight {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
}

.wheel-column:nth-child(4) .wheel-highlight {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}

/* 响应式设计 - 日期选择器 */
@media (max-width: 600px) {
    .date-picker-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    
    .wheel-column {
        min-width: 0;
        flex: 1;
    }
    
    .wheel-column:nth-child(1) {
        flex: 0 0 20%;
    }
    
    .wheel-column:nth-child(2) {
        flex: 0 0 20%;
    }
    
    .wheel-column:nth-child(3) {
        flex: 0 0 20%;
    }
    
    .wheel-column:nth-child(4) {
        flex: 0 0 40%;
    }
    
    /* 地址选择器（三个滚轮） */
    #areaPicker .wheel-column:nth-child(1) {
        flex: 0 0 33.33%;
    }
    
    #areaPicker .wheel-column:nth-child(2) {
        flex: 0 0 33.33%;
    }
    
    #areaPicker .wheel-column:nth-child(3) {
        flex: 0 0 33.34%;
    }
    
    .wheel-item {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 5px;
    }
}

/* 法人姓名验证反馈样式 */
.legal-name-feedback {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: none;
    vertical-align: middle;
}

.legal-name-feedback.show {
    display: inline-block;
}

.legal-name-valid {
    color: #10B981;
    font-weight: 500;
}

.legal-name-invalid {
    color: #f44336;
    font-weight: 500;
}

#legalName:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

#legalName.legal-name-valid-input {
    border-color: #10B981 !important;
}

#legalName.legal-name-invalid-input {
    border-color: #f44336 !important;
}

/* 起名结果区域样式 */
#name-results {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

#name-results .section-title {
    margin-bottom: 2.5rem;
}

#name-results .section-title h2 {
    color: var(--dark);
    font-size: 2rem;
}

#nameResultsContainer {
    min-height: 200px;
}

/* 起名结果模态框样式（仅用于加载状态） */
.result-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.result-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.result-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.result-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.result-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.result-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.result-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.result-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* 加载状态 */
.result-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.result-loading p {
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
}

/* 错误状态 */
.result-error {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.result-error i {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.result-error p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 结果内容 - 卡片式布局 */
.result-names {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

.result-name-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.result-name-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.name-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.name-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.name-title {
    margin: 0;
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.name-pinyin {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.05em;
}

.name-index {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.name-analysis {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.analysis-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.analysis-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
    border-color: var(--primary);
}

.analysis-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.05rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.analysis-label i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.analysis-content {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
    padding-left: 0;
    white-space: pre-wrap;
    text-align: justify;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .result-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .result-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .result-modal-body {
        padding: 1.5rem 1rem;
    }
    
    .result-names {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .result-name-card {
        padding: 1.5rem;
    }
    
    .name-title {
        font-size: 1.8rem;
    }
    
    .name-pinyin {
        font-size: 0.9rem;
    }
    
    .name-index {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .analysis-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .analysis-item {
        padding: 1rem;
    }
}

/* 姓名选择区域 */
.name-selection-header {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.name-selection-tip {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.name-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.name-select-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.name-select-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.name-select-btn.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.name-selection-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.name-selection-actions .btn {
    min-width: 150px;
}

.name-selection-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 对比模态框 */
.compare-modal {
    max-width: 1200px;
    width: 95%;
}

.compare-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.compare-chart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-chart-item h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.compare-chart-item canvas {
    max-height: 400px;
}

.compare-recommendation {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    margin-top: 2rem;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recommendation-header i {
    font-size: 1.5rem;
    color: #ffd700;
}

.recommendation-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.recommendation-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.recommendation-text p {
    margin-bottom: 1rem;
}

.recommendation-text strong {
    color: #ffd700;
    font-size: 1.2em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .name-selection-header {
        padding: 1.5rem;
    }
    
    .name-buttons-container {
        gap: 0.75rem;
    }
    
    .name-select-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .name-selection-actions {
        flex-direction: column;
    }
    
    .name-selection-actions .btn {
        width: 100%;
    }
    
    .compare-charts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .compare-chart-item {
        padding: 1rem;
    }
    
    .compare-chart-item canvas {
        max-height: 300px;
    }
    
    .compare-recommendation {
        padding: 1.5rem;
    }
    
    .recommendation-text {
        font-size: 1rem;
    }
}

