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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #e8d5f2, #d1c4e9);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    max-width: 120px;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* 如果图片加载失败，显示备用内容 */
.logo-image:not([src]),
.logo-image[src=""] {
    display: none;
}

/* 备用Logo样式 */
.nav-logo::before {
    content: "🐾 UPetS";
    display: none;
    font-weight: 700;
    color: #333;
}

.logo-image:not([src]) + .nav-logo::before,
.logo-image[src=""] + .nav-logo::before {
    display: block;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-arrow {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav-arrow i {
    font-size: 12px;
    color: #666;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
    background: rgba(255, 255, 255, 0.3);
}

/* 首页横幅样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b6b 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 50%, rgba(255, 107, 107, 0.1) 100%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-heart, .floating-star, .floating-sparkle, .floating-paw {
    position: absolute;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-heart {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-star {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-sparkle {
    top: 60%;
    left: 20%;
    animation-delay: 3s;
}

.floating-paw {
    top: 70%;
    right: 10%;
    animation-delay: 4.5s;
}

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

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    color: white;
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    width: 300px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
}

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

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background: white;
    color: #ff6b6b;
    transform: translateY(-3px);
}

/* 通用section样式 */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* 活动专区样式 */
.activities {
    background: #fff;
}

.activities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.activity-left,
.activity-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-image {
    margin-bottom: 20px;
}

.placeholder-image {
    background: #e2e8f0;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #718096;
    font-size: 14px;
    padding: 40px 20px;
}

.placeholder-image.small {
    padding: 20px;
    min-height: 80px;
}

.placeholder-image.large {
    padding: 60px 20px;
    min-height: 200px;
}

.placeholder-image i {
    font-size: 24px;
    margin-bottom: 8px;
}

.device-images {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.activity-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.benefits-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.benefits-list ol {
    padding-left: 20px;
}

.benefits-list li {
    margin-bottom: 8px;
    color: #666;
}

/* 下载专区样式 */
.download {
    background: #f8f9fa;
}

.download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.download-buttons {
    display: flex;
    gap: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #e2e8f0;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #cbd5e0;
}

.download-btn i {
    font-size: 20px;
}

.qr-codes {
    display: flex;
    gap: 40px;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-grid {
    width: 120px;
    height: 120px;
    background: #e2e8f0;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    padding: 10px;
}

.qr-line {
    background: #cbd5e0;
    border-radius: 2px;
}

.qr-placeholder span {
    font-size: 12px;
    color: #718096;
}

/* 硬件专区样式 */
.hardware {
    background: #fff;
}

.hardware-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-device {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.device-info {
    flex: 1;
}

.device-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.device-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.features-section {
    margin-top: 20px;
}

.features-section ul {
    list-style: none;
    padding: 0;
}

.features-section li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #e2e8f0;
}

.features-section li:last-child {
    border-bottom: none;
}

.device-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 联系我们样式 */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-email {
    width: 100%;
    max-width: 500px;
}

.email-field {
    background: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-field span:first-child {
    font-weight: 500;
    color: #333;
}

.email-placeholder {
    color: #718096;
    font-family: monospace;
}

/* 关于我们样式 */
.about {
    background: #fff;
}

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

.about-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .main-logo {
        width: 250px;
    }

    .hero-text {
        max-width: 100%;
    }

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

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

    .main-device {
        flex-direction: column;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .qr-codes {
        flex-direction: column;
        align-items: center;
    }

    .device-images {
        justify-content: center;
    }

    .kitten-left {
        margin-left: 20px;
    }

    .kitten-right {
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .main-logo {
        width: 200px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .kitten {
        width: 60px;
        height: 80px;
    }

    .kitten-face {
        width: 45px;
        height: 40px;
    }

    .brick {
        width: 40px;
        height: 15px;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.kitten {
    animation: float 3s ease-in-out infinite;
}

.kitten-right {
    animation-delay: 1.5s;
}

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

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}