/* 阿里巴巴普惠体字体定义 */
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.woff') format('woff'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.ttf') format('truetype'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.otf') format('opentype'),
         url('../fonts/AlibabaPuHuiTi-3-55-Regular/AlibabaPuHuiTi-3-55-Regular.eot');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载性能 */
}

/* ConchMusic 主题样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* 首页专用变量 */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 全站字体应用 */
* {
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题字体优化 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 500;
}

/* 导航栏样式 */
.navbar-brand {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-link {
    font-family: var(--font-family);
    font-weight: 400;
}

/* Hero区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.02) 1px, transparent 1px),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 1px, transparent 1px),
                radial-gradient(circle at 40% 40%, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    opacity: 0.3;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    border-radius: 15px 15px 0 0;
}

/* 按钮样式 */
.btn {
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
}

/* 输入框字体 */
input, textarea, select {
    font-family: var(--font-family);
}

/* 底部样式 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer h5, footer h6 {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .footer-elegant {
        padding: 2rem 0 1rem;
    }
    
    .footer-title, .contact-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .links-container {
        gap: 0.6rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-top: 0.5rem;
    }
    
    .footer-elegant .footer-link,
    .footer-elegant .contact-item,
    .footer-elegant .social-link {
        font-size: 0.9rem;
    }
    
    .footer-elegant .copyright,
    .footer-elegant .icp-info {
        font-size: 0.8rem;
        text-align: center !important;
        margin-top: 0.5rem;
    }
    
    /* 移动端社交图标调整 */
    .social-qrcodes {
        gap: 1rem;
        align-items: flex-start;
    }
    
    .qrcode-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .footer-elegant .qrcode-label {
        font-size: 0.8rem;
    }
    
    .btn-outline-custom i {
        margin-right: 6px;
        font-size: 0.9rem;
    }
    
    /* Hi-Res 图标移动端适配 */
    .hires-icon {
        height: 18px;
        margin-right: 6px;
    }
    
    /* 了解更多按钮移动端适配 */
    .btn-outline-custom {
        min-width: 130px;
        height: 40px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .btn-outline-custom i {
        margin-right: 6px;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===== 首页专用样式 ===== */

/* 首页主体样式覆盖 */
body.index-page {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%) !important;
    margin: 0;
    padding: 0;
}

body.index-page main {
    background: transparent !important;
    padding: 0 !important;
    margin: 0;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.02) 1px, transparent 1px),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 1px, transparent 1px),
                radial-gradient(circle at 40% 40%, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    opacity: 0.3;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #a8e6cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* 手机模型 */
.phone-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) scale(1.02);
}

.phone-mockup img {
    max-width: 400px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
}

/* 浮动元素 */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    bottom: 30%;
    left: 5%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 60%;
    right: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 4s;
}

/* 按钮样式 */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 13px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* App Store 按钮样式 */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #000000;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    border: 1px solid #000000;
    transition: all 0.3s ease;
    min-width: 150px;
    height: 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-store-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.app-store-btn:hover::before {
    left: 100%;
}

.app-store-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    color: white !important;
    text-decoration: none !important;
}

.app-store-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.app-store-btn i {
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    flex-grow: 1;
}

.download-text {
    font-size: 0.7rem;
    font-weight: 400;
    color: white;
    opacity: 0.9;
    margin: 0;
    line-height: 1;
}

.store-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1;
    margin-top: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* App Store按钮移动端适配 */
    .app-store-btn {
        min-width: 130px;
        height: 40px;
        padding: 6px 12px;
    }
    
    .app-store-btn i {
        font-size: 1.5rem;
    }
    
    .download-text {
        font-size: 0.65rem;
    }
    
    .store-text {
        font-size: 0.9rem;
    }
    
    .app-store-content {
        gap: 6px;
    }
    
    /* 了解更多按钮移动端适配 */
    .btn-outline-custom {
        min-width: 130px;
        height: 40px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .btn-outline-custom i {
        margin-right: 6px;
        font-size: 0.9rem;
    }
}

/* 特性区域 */
.features-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.02) 1px, transparent 1px),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 1px, transparent 1px),
                radial-gradient(circle at 40% 40%, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    opacity: 0.3;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #a8e6cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Footer 样式优化 */
.footer-elegant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.footer-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.footer-elegant .container {
    position: relative;
    z-index: 2;
}

/* 标题样式 */
.footer-elegant .footer-title, 
.footer-elegant .contact-title {
    color: white !important;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 快速链接 */
.footer-links {
    text-align: center;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    align-items: center;
}

.footer-elegant .footer-link,
.footer-elegant .footer-link:link,
.footer-elegant .footer-link:visited {
    color: white !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.footer-elegant .footer-link:hover,
.footer-elegant .footer-link:focus {
    color: #a8e6cf !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 联系信息 */
.footer-contact {
    text-align: center;
}

.footer-elegant .contact-item,
.footer-elegant .contact-item span {
    color: white !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.footer-elegant .contact-item:hover {
    color: white !important;
}

.footer-elegant .contact-item i {
    color: #a8e6cf !important;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* 分割线 */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 2rem 0 1rem;
}

/* 版权信息 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.footer-elegant .copyright, 
.footer-elegant .icp-info {
    color: white !important;
    font-size: 0.85rem;
}

.footer-elegant .link-accent {
    color: #a8e6cf !important;
    text-decoration: none !important;
}

.footer-elegant .link-accent:hover {
    color: white !important;
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 背景装饰 */
.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 1px, transparent 1px),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    opacity: 0.3;
    z-index: 1;
}

/* 社交媒体 */
.footer-social {
    text-align: center;
}

.social-qrcodes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.qrcode-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.qrcode-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(168, 230, 207, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qrcode-image:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #a8e6cf;
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.4);
}

.qrcode-image:hover::before {
    opacity: 1;
}

.qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-elegant .qrcode-label {
        font-size: 0.8rem;
    }
}

/* 了解更多按钮样式 - 与App Store按钮协调 */
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: transparent;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 150px;
    height: 44px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.btn-outline-custom:hover::before {
    left: 100%;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
    color: white !important;
    text-decoration: none !important;
}

.btn-outline-custom i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Hi-Res Audio 徽章按钮样式 */
.hires-badge-btn {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    cursor: default;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.hires-badge-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
}

.hires-badge-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255,255,255,0.15) !important;
}

.hires-badge-btn i {
    color: white !important;
}

/* Hi-Res 图标样式 */
.hires-icon {
    height: 20px;
    width: auto;
    margin-right: 8px;
    border-radius: 3px;
    vertical-align: middle;
    border: 2px solid #ffd700;
}
