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

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

/* 英雄区域 */
.hero {
    margin-top: 80px;
    padding: 3rem 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 宠物容器 */
.pet-container {
    margin-bottom: 2rem;
}

.pet-speech {
    background: #FFF3CD;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    border: 2px solid #FFE69C;
}

.pet-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFF3CD;
}

.pet-avatar {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pet-egg {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.pet-egg i {
    font-size: 3rem;
    color: #FFF;
}

.pet-face {
    position: absolute;
    bottom: 20px;
    font-size: 1.2rem;
    color: #FFF;
    font-weight: bold;
}

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

/* 统计信息 */
.stats-container {
    margin: 2rem 0;
}

.stats-container h3 {
    color: #333;
    margin-bottom: 1rem;
}

.progress-bar {
    background: #E9ECEF;
    border-radius: 15px;
    height: 20px;
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #FF6B9D, #C44569);
    height: 100%;
    border-radius: 15px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.action-btn i {
    font-size: 1.5rem;
}

/* 功能介绍 */
.features {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 0;
    margin: 2rem 0;
}

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

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

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

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

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* 下载区域 */
.download {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 0;
    text-align: center;
}

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

.qr-code {
    margin-top: 2rem;
}

.qr-placeholder {
    display: inline-block;
    width: 200px;
    height: 200px;
    background: #F8F9FA;
    border: 2px dashed #DEE2E6;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6C757D;
}

.qr-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #25D366;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    color: #6C757D;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item.active {
    color: #667eea;
}

.nav-item:hover {
    color: #667eea;
}

.nav-item i {
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    margin-bottom: 80px;
}

/* 页面内容 */
.page-content {
    margin-top: 100px;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    min-height: calc(100vh - 200px);
}

.page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.about-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.about-section ul {
    padding-left: 2rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

/* 联系页面 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: #667eea;
    margin-right: 1rem;
    width: 50px;
}

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

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

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

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

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

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content {
        margin: 1rem;
        padding: 1.5rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

/* 二维码样式 */
.qr-image-container {
    display: inline-block;
    position: relative;
    margin: 2rem 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid white;
}

.qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.qr-description {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.qr-fallback {
    width: 200px;
    height: 200px;
    background: #F8F9FA;
    border: 2px dashed #DEE2E6;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6C757D;
}

.qr-fallback i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #25D366;
}

.qr-fallback small {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-image,
    .qr-fallback {
        width: 150px;
        height: 150px;
    }
}

/* 二维码模态框样式 */
.qr-modal {
    display: block;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.qr-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

.qr-modal-close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.qr-modal-close:hover {
    color: #000;
}

.qr-modal-image {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .qr-modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 1.5rem;
    }

    .qr-modal-image {
        width: 200px;
        height: 200px;
    }
}