* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 动画背景 - 简化为纯白色 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #ffffff;
}

.gradient-orb {
    display: none;
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* 搜索区域 */
.search-section {
    text-align: center;
    padding: 4rem 0 3rem 0;
}

/* 标题容器 */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: logoFadeIn 1s ease-out;
}

/* Logo样式 */
.main-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-logo svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.main-logo svg:hover {
    transform: scale(1.05);
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题文本 */
.title-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin: 0;
}

.search-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.input-unit {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    pointer-events: none;
}

.search-input,
.count-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.search-input {
    padding-left: 3rem;
}

.count-input {
    padding-right: 2.5rem;
    text-align: left;
}

.search-input:focus,
.count-input:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #000000;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
}

.search-btn:active {
    transform: translateY(0);
}

/* 快速选择 */
.quick-select {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.quick-btn {
    padding: 0.625rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 4rem;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border: 4px solid #e2e8f0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* 结果区域 */
.results {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 股票头部 */
.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stock-name {
    font-size: 2rem;
    font-weight: 700;
}

.stock-code {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #000000;
    font-weight: 600;
}

.price-change {
    text-align: right;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.change-info {
    display: flex;
    gap: 1rem;
    font-size: 1.125rem;
}

.change-percent,
.change-amount {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

.price-change.up .current-price,
.price-change.up .change-percent,
.price-change.up .change-amount {
    color: var(--success-color);
}

.price-change.down .current-price,
.price-change.down .change-percent,
.price-change.down .change-amount {
    color: var(--danger-color);
}

.price-change.up .change-percent,
.price-change.up .change-amount {
    background: rgba(16, 185, 129, 0.2);
}

.price-change.down .change-percent,
.price-change.down .change-amount {
    background: rgba(239, 68, 68, 0.2);
}

/* 指标网格 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* 数据表格 */
.table-section {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.export-btn {
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.export-btn:hover {
    background: #ffffff;
    border-color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8fafc;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f8fafc;
}

/* 错误提示 */
.error-message {
    text-align: center;
    padding: 4rem;
}

.error-message svg {
    margin-bottom: 1rem;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--danger-color);
}

.error-message p {
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .chart-card.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 2rem 0 2rem 0;
    }
    
    .title-container {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .title-text {
        text-align: center;
        align-items: center;
    }
    
    .main-logo svg {
        width: 80px;
        height: 80px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .input-group.count-input-group {
        order: 2;
    }
    
    .input-group.main-input {
        order: 1;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .price-change {
        text-align: left;
        width: 100%;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* 相关工具推荐 - 隐藏显示但保留SEO链接 */
.related-tools-seo {
    display: none;
}

/* 友情链接美化 */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.footer-link:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

