/* 网易云音乐官网 - 全局样式 */
:root {
    --primary-color: #C62F2F;
    --primary-dark: #A82626;
    --primary-light: #E84A4A;
    --secondary-color: #335EEA;
    --success-color: #28B566;
    --warning-color: #FFB800;
    --dark-color: #1A1A1A;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-white);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 16px;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

/* 段落 */
p {
    margin-bottom: 16px;
    color: var(--text-color);
}

/* 链接 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-lg {
    padding: 16px 48px;
    font-size: 18px;
}

/* 卡片 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* 导航 */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--bg-white);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* 客户端模拟器 */
.client-simulator {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.simulator-header {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.simulator-dots {
    display: flex;
    gap: 6px;
}

.simulator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.simulator-title {
    font-size: 14px;
    font-weight: 500;
}

.simulator-body {
    padding: 20px;
}

.simulator-player {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.player-cover {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 24px;
}

.player-info {
    flex: 1;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.simulator-playlist {
    list-style: none;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.playlist-item:hover {
    background: var(--bg-light);
}

.playlist-item.playing {
    background: rgba(198, 47, 47, 0.1);
}

.playlist-index {
    width: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.playlist-info {
    flex: 1;
}

.playlist-name {
    font-size: 14px;
    font-weight: 500;
}

.playlist-artist {
    font-size: 12px;
    color: var(--text-muted);
}

.playlist-duration {
    font-size: 12px;
    color: var(--text-muted);
}

/* 板块通用样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* 公告区 */
.announcement {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF5F5 100%);
    padding: 24px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 700;
}

.announcement-text {
    flex: 1;
    font-size: 16px;
}

.announcement-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* 功能卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--bg-white);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-light);
    font-size: 14px;
}

/* 对比表格 */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--dark-color);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table .check {
    color: var(--success-color);
    font-size: 20px;
}

.compare-table .cross {
    color: var(--text-muted);
    font-size: 20px;
}

/* 新闻Tab */
.news-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 24px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(198, 47, 47, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* 用户评论 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 24px;
    font-weight: 600;
}

.testimonial-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.testimonial-stars {
    color: #FFB800;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 下载区 */
.download-section {
    background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
    color: var(--bg-white);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.download-card {
    text-align: center;
    padding: 32px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.download-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.download-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.download-platform {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.download-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.download-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* 信任背书 */
.trust-section {
    background: var(--bg-light);
}

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

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.trust-label {
    font-size: 14px;
    color: var(--text-light);
}

/* 应用场景 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.scenario-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: var(--bg-white);
}

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

.scenario-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--bg-white);
}

.scenario-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.faq-answer {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.faq-steps {
    list-style: none;
    counter-reset: step;
}

.faq-steps li {
    counter-increment: step;
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.faq-steps li:last-child {
    border-bottom: none;
}

.faq-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* 底部CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--bg-white);
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.btn-white:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    text-decoration: none;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--bg-white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--bg-white);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb span {
    margin: 0 8px;
}

/* 文章页面 */
.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0;
}

.article-main {
    background: var(--bg-white);
}

.article-header {
    margin-bottom: 32px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-list a {
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid,
    .news-grid,
    .testimonials-grid,
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .section {
        padding: 40px 0;
    }
    
    .features-grid,
    .news-grid,
    .testimonials-grid,
    .scenarios-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
