* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.update-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs .container {
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

/* Main Content */
main {
    padding: 3rem 2rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

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

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

.tab-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #667eea;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card.featured {
    border: 2px solid #667eea;
}

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

.product-header h3 {
    font-size: 1.5rem;
    color: #333;
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-hot {
    background: #ff4757;
    color: white;
}

.badge-new {
    background: #5f27cd;
    color: white;
}

.badge-top {
    background: #ffa502;
    color: white;
}

.badge-value {
    background: #10ac84;
    color: white;
}

.product-info {
    margin-bottom: 1.5rem;
}

.product-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.product-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

.features h4,
.pricing h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10ac84;
    font-weight: bold;
}

.pricing {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.pricing p {
    color: #555;
    font-weight: 500;
}

.news {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffa502;
    border-radius: 4px;
}

.product-links {
    margin-top: 1rem;
}

.product-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-right: 1rem;
}

.product-links a:hover {
    text-decoration: underline;
}

/* Hardware Grid */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.hardware-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.hardware-item h4 {
    color: #667eea;
    margin-bottom: 0.8rem;
}

.hardware-item p {
    color: #666;
    margin-bottom: 1rem;
}

.hardware-item ul {
    list-style: none;
    padding-left: 0;
}

.hardware-item li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.95rem;
}

/* Compare Section */
.compare-section {
    margin-bottom: 3rem;
}

.compare-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Ranking Table */
.ranking-table {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.rank-item:hover {
    transform: translateX(10px);
}

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

.rank-number {
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    min-width: 60px;
    text-align: center;
}

.rank-1 .rank-number {
    color: #ffa502;
}

.rank-2 .rank-number {
    color: #c0c0c0;
}

.rank-3 .rank-number {
    color: #cd7f32;
}

.rank-info strong {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.rank-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.price-card.highlight {
    border: 2px solid #10ac84;
}

.price-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.price-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Scenario Grid */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.scenario-card:hover {
    transform: translateY(-5px);
}

.scenario-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.scenario-card p {
    color: #555;
    margin-bottom: 0.5rem;
}

/* Trends */
.trends {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.trend-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.trend-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.trend-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
}

.trend-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .hardware-grid,
    .price-grid,
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .rank-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trend-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trend-icon {
        font-size: 2.5rem;
    }
}
