/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand h2 {
    color: #e91e63;
    font-weight: 700;
}

.nav-brand i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e91e63;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn.active {
    background: #e91e63;
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

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

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

/* 主页横幅 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.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 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #e91e63;
    color: white;
}

.btn-primary:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 手机模型 */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: float-main 8s ease-in-out infinite;
}

@keyframes float-main {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    25% { transform: translateY(-5px) rotateY(2deg); }
    50% { transform: translateY(-10px) rotateY(0deg); }
    75% { transform: translateY(-5px) rotateY(-2deg); }
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: transparent;
    border-radius: 30px;
    padding: 0;
    position: relative;
    box-shadow: none;
    border: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.app-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.2);
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.profile-card h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.profile-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.zodiac-compatibility {
    margin-bottom: 15px;
}

.compatibility-score {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dislike {
    background: #ff4757;
    color: white;
}

.like {
    background: #2ed573;
    color: white;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* 功能区域 */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.download-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

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

.download-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

.phones-showcase {
    position: relative;
    height: 400px;
}

.phone {
    position: absolute;
    width: 200px;
    height: 400px;
    background: transparent;
    border-radius: 25px;
    padding: 0;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
}

.phone:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.phone-1 {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    z-index: 1;
    animation: float1 6s ease-in-out infinite;
}

.phone-2 {
    top: 50px;
    right: 0;
    transform: rotate(5deg);
    z-index: 2;
    animation: float2 6s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: rotate(-5deg) translateY(0px); }
    50% { transform: rotate(-5deg) translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(5deg) translateY(0px); }
    50% { transform: rotate(5deg) translateY(-15px); }
}

.phone-content {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phone:hover .phone-screenshot {
    transform: scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.15);
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-method i {
    width: 20px;
    color: #e91e63;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: #e91e63;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-brand h3 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #e91e63;
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .phones-showcase {
        height: 300px;
    }
    
    .phone {
        width: 150px;
        height: 300px;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .app-preview {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

.hero-text,
.feature-card,
.contact-form {
    animation: fadeInUp 0.8s ease-out;
}

/* 滚动动画 */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 语言切换动画 */
[data-lang] {
    transition: all 0.3s ease;
}

.language-transition {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端语言切换器样式 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 1rem;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 0.5rem;
    }
    
    .language-switcher {
        margin-right: 0.5rem;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* 页面标题区域 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 配对测试区域 */
.compatibility-test {
    padding: 80px 0;
    background: #f8f9fa;
}

.test-container {
    max-width: 800px;
    margin: 0 auto;
}

.test-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.test-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #e91e63;
}

/* 测试结果 */
.test-result {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.test-result.show {
    opacity: 1;
    transform: translateY(0);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.compatibility-score {
    display: inline-flex;
    align-items: baseline;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}

.score-number {
    font-size: 3rem;
}

.score-label {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.zodiac-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.zodiac-sign {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    min-width: 120px;
}

.sign-symbol {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.sign-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.vs-symbol {
    font-size: 2rem;
    color: #e91e63;
}

.result-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.result-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.detail-item {
    margin-bottom: 0.5rem;
    color: #333;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 兼容性矩阵 */
.compatibility-matrix {
    padding: 80px 0;
    background: white;
}

.compatibility-matrix h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
}

.matrix-container {
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    min-width: 600px;
}

.matrix-table th,
.matrix-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.matrix-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.matrix-table td {
    font-size: 0.9rem;
    font-weight: 500;
}

.matrix-table td.excellent {
    background: #d4edda;
    color: #155724;
}

.matrix-table td.good {
    background: #fff3cd;
    color: #856404;
}

.matrix-table td.challenging {
    background: #f8d7da;
    color: #721c24;
}

.matrix-table td.same-sign {
    background: #e9ecef;
    color: #6c757d;
}

/* 推荐阅读 */
.recommended-reading {
    padding: 80px 0;
    background: #f8f9fa;
}

.recommended-reading h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reading-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.reading-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.reading-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #c2185b;
}

/* 导航栏活跃状态 */
.nav-menu a.active {
    color: #e91e63;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .test-form {
        padding: 2rem;
    }
    
    .zodiac-pair {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .reading-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .test-form {
        padding: 1.5rem;
    }
    
    .compatibility-score {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
}

/* 运势选择器 */
.horoscope-selector {
    padding: 80px 0;
    background: #f8f9fa;
}

.selector-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.selector-container h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.zodiac-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.zodiac-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.zodiac-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e91e63;
}

.zodiac-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.zodiac-date {
    font-size: 0.9rem;
    color: #666;
}

/* 运势内容 */
.horoscope-content {
    padding: 80px 0;
    background: white;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.horoscope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.selected-sign {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sign-symbol {
    font-size: 4rem;
    color: #e91e63;
}

.sign-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.sign-info p {
    color: #666;
    font-size: 1rem;
}

.horoscope-date {
    text-align: right;
    color: #666;
}

.horoscope-date span:first-child {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* 运势标签页 */
.horoscope-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

.tab-btn:hover {
    color: #e91e63;
}

/* 运势详情 */
.tab-content {
    display: none;
}

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

.horoscope-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 5px solid #e91e63;
}

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

.card-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.score {
    color: #666;
    font-weight: 600;
}

.horoscope-text {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* 运势操作按钮 */
.horoscope-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

/* 运势分享 */
.horoscope-share {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.horoscope-share h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.horoscope-share p {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.share-btn:hover {
    border-color: #e91e63;
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 2rem;
    color: #e91e63;
}

.share-btn span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zodiac-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .zodiac-item {
        padding: 1.5rem;
    }
    
    .zodiac-symbol {
        font-size: 3rem;
    }
    
    .horoscope-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .horoscope-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    .horoscope-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .selector-container h2 {
        font-size: 2rem;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zodiac-symbol {
        font-size: 2.5rem;
    }
    
    .sign-symbol {
        font-size: 3rem;
    }
    
    .sign-info h2 {
        font-size: 1.5rem;
    }
}

/* 星座知识页面样式 */
.zodiac-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.zodiac-grid-section .section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.zodiac-grid-section .section-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.zodiac-grid-section .section-intro p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.zodiac-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.zodiac-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.zodiac-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.zodiac-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.zodiac-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.zodiac-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.trait {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 知识内容区域 */
.knowledge-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.knowledge-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

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

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

.tab-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
}

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

.tab-pane h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.knowledge-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.knowledge-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.knowledge-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.knowledge-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* 四大元素样式 */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.element-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.element-card.fire {
    border-top: 5px solid #e74c3c;
}

.element-card.earth {
    border-top: 5px solid #27ae60;
}

.element-card.air {
    border-top: 5px solid #3498db;
}

.element-card.water {
    border-top: 5px solid #9b59b6;
}

.element-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.element-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.element-card p {
    color: #6c757d;
    margin-bottom: 20px;
    font-weight: 600;
}

.element-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.element-card li {
    padding: 8px 0;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.element-card li:last-child {
    border-bottom: none;
}

/* 配对指南样式 */
.compatibility-guide {
    max-width: 800px;
    margin: 0 auto;
}

.compatibility-level {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.compatibility-level h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.compatibility-level p {
    color: #6c757d;
    margin: 0;
}

.compatibility-tips {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.compatibility-tips h4 {
    margin-bottom: 20px;
    color: white;
}

.compatibility-tips ul {
    list-style: none;
    padding: 0;
}

.compatibility-tips li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.compatibility-tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* 弹窗样式 */
.zodiac-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-body {
    padding: 30px;
}

.zodiac-detail .zodiac-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.zodiac-symbol {
    font-size: 4rem;
    margin-right: 20px;
}

.zodiac-info p {
    margin: 5px 0;
    color: #6c757d;
}

.zodiac-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 25px;
}

.zodiac-detail h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.trait-tag {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.zodiac-compatibility p {
    color: #6c757d;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zodiac-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zodiac-card {
        padding: 20px;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .elements-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .zodiac-detail .zodiac-header {
        flex-direction: column;
        text-align: center;
    }

    .zodiac-symbol {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
    
    .horoscope-card {
        padding: 1.5rem;
    }
