/* --- Spotify Brand Theme --- */
:root {
    --primary-color: #1DB954; /* Spotify Green */
    --secondary-color: #191414; /* Spotify Black */
    --text-color: #FFFFFF;
    --light-text: #b3b3b3;
    --bg-color: #121212; /* Dark Mode Background */
    --card-bg: #181818;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Circular', 'Helvetica Neue', 'Helvetica', 'Arial', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header - Fixed Black Background */
header {
    background: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
    display: flex;
    align-items: center;
}

header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
}

.logo-container span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-signup {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-signup:hover {
    color: var(--white);
    transform: scale(1.05);
}

.btn-login {
    background: var(--white);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 500px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-login:hover {
    transform: scale(1.05);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Hero Section - Based on provided image */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #f2a1c2 0%, #7bc4a8 100%); /* 粉绿渐变，匹配截图 */
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #191414; /* 截图中使用深色文字 */
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hero-brand-logo img {
    height: 48px;
    width: auto;
}

.hero-brand-logo span {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #191414;
}

.hero-desc {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #191414;
    max-width: 550px;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Microsoft Store 风格按钮 */
.btn-ms-store {
    background: #191414;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ms-store:hover {
    background: #282828;
    transform: translateY(-2px);
}

.ms-icon {
    width: 32px;
    height: 32px;
}

.ms-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ms-text .small {
    font-size: 0.7rem;
    font-weight: 400;
}

.ms-text .big {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-direct-dl {
    color: #191414;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding-left: 0.5rem;
    transition: var(--transition);
}

.btn-direct-dl:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.hero-image-wrapper {
    flex: 1.5;
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    /* 移除之前的动画，截图更显稳重 */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Common */
section {
    padding: 8rem 0; /* 增加垂直间距 */
}

.section-title {
    font-size: 3rem; /* 增大标题 */
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: -0.02em;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: #181818;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: #282828;
    transform: translateY(-10px);
    border-color: rgba(29, 185, 84, 0.3);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.pricing-card {
    background: #181818;
    padding: 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid #282828;
    transition: var(--transition);
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pricing-card.popular {
    background: #282828;
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular::before {
    content: "最受欢迎";
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--primary-color);
    color: black;
    padding: 0.3rem 3rem;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.plan-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--white);
    font-size: 1rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
}

.btn-plan {
    background: var(--primary-color);
    color: black;
    text-align: center;
    padding: 1.2rem;
    border-radius: 500px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-plan:hover {
    transform: scale(1.03);
    background: #1ed760;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(to bottom, #121212, #000000);
    text-align: center;
    padding: 10rem 0;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

.btn-cta {
    background: var(--primary-color);
    color: black;
    padding: 1.2rem 3.5rem;
    border-radius: 500px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
    background: #1ed760;
}

/* Music Content Sections (Based on screenshot) */
.content-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.show-all {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.show-all:hover {
    text-decoration: underline;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 items as in screenshot */
    gap: 1.5rem;
    align-items: stretch; /* 确保卡片在同一行等高 */
}

.music-card {
    background: #181818;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    height: 100%; /* 填满父容器高度 */
    min-width: 0; /* 防止内容溢出导致宽度异常 */
}

.music-card:hover {
    background: #282828;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    position: relative; /* For play button */
    flex-shrink: 0; /* 防止图片被压缩 */
}

.play-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,.3);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.music-card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.play-button svg {
    width: 24px;
    height: 24px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.music-card h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    white-space: normal; /* 允许换行 */
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 限制标题为 1 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.music-card p {
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制描述为 2 行，防止高度不一 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Artist specific styles */
.artist-card .card-img-wrapper {
    border-radius: 50%; /* Circular images for artists */
}

@media (max-width: 1200px) {
    .music-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer - Black Background */
footer {
    background: #000000;
    padding: 5rem 0 2rem;
    color: var(--white);
}

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

.footer-brand .logo-container {
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    text-transform: uppercase;
    color: var(--light-text);
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.footer-bottom {
    border-top: 1px solid #282828;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-text);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--light-text);
    text-decoration: none;
}

/* --- Download Page Specific --- */
.download-hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, #1db95422, transparent), #121212;
    text-align: center;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.dl-card {
    background: #181818;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid #282828;
    transition: var(--transition);
    text-align: center;
}

.dl-card:hover {
    background: #282828;
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.dl-card .icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.dl-card .icon svg {
    height: 100%;
    width: auto;
    fill: var(--white);
    transition: var(--transition);
}

.dl-card:hover .icon svg {
    fill: var(--primary-color);
}

.dl-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dl-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 3em;
}

.btn-download-now {
    display: inline-block;
    background: var(--primary-color);
    color: black;
    padding: 0.8rem 2rem;
    border-radius: 500px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-download-now:hover {
    transform: scale(1.05);
    background: #1ed760;
}

/* System Requirements */
.req-section {
    background: #000;
    border-radius: 2rem;
    padding: 4rem;
    margin: 4rem 0;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.req-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.req-item ul {
    list-style: none;
}

.req-item ul li {
    color: var(--light-text);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.req-item ul li b {
    color: var(--white);
    margin-right: 0.5rem;
}

/* Changelog */
.changelog-list {
    max-width: 800px;
    margin: 0 auto;
}

.log-item {
    padding: 2rem;
    border-bottom: 1px solid #282828;
}

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

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.version-tag {
    background: var(--primary-color);
    color: black;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.log-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.log-content ul {
    padding-left: 1.2rem;
    color: var(--light-text);
}

.log-content li {
    margin-bottom: 0.5rem;
}

/* Software Intro */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.step-list {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.step-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-info p {
    color: var(--light-text);
    font-size: 0.9rem;
}
/* --- Responsive Design --- */

/* Hamburger Menu Icon */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2100;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 8rem 0 4rem;
        text-align: center;
    }
    .hero .container {
        flex-direction: column;
        gap: 3rem;
    }
    .hero-brand-logo {
        justify-content: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-btns {
        align-items: center;
    }
    .hero-image-wrapper {
        width: 100%;
        max-width: 600px;
    }

    /* Music Grid */
    .music-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Download */
    .dl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Intro */
    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .intro-text {
        order: 2;
    }
    .intro-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-auth {
        display: none; /* Hide login/signup on mobile nav for simplicity, or move them into menu */
    }

    /* Section Spacing */
    section {
        padding: 5rem 0;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    /* Music Grid */
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Download */
    .dl-grid {
        grid-template-columns: 1fr;
    }

    /* Requirements */
    .req-section {
        padding: 2rem;
    }
    .req-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1.1rem;
    }
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Doc Page Responsive */
@media (max-width: 900px) {
    .doc-container {
        grid-template-columns: 1fr;
        margin-top: 8rem;
    }
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #282828;
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 3rem;
    }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .sidebar-menu li {
        flex-shrink: 0;
    }
    .sidebar-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }
    .sidebar::-webkit-scrollbar {
        height: 3px;
    }
}
