/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(45deg, #fff5ee 0%, #ffefd5 50%, #ffe4b5 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #d4af37 0%, #ff6b35 50%, #dc143c 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
    border-bottom: 4px solid #ffd700;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.8;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border: 2px solid #dc143c;
    color: #8b0000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.sign-in-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffa500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.sign-in-btn.signed {
    background: linear-gradient(135deg, #32cd32 0%, #228b22 100%);
    border-color: #006400;
    color: white;
}

.sign-icon {
    width: 20px;
    height: 20px;
}

.coins-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    border: 2px solid #ffd700;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.coin-icon {
    width: 20px;
    height: 20px;
    color: #ffd700;
}

/* 轮播图样式 */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    display: flex;
    width: auto;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图导航点 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,215,0,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.8);
}

.dot.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    transform: scale(1.3);
    border-color: #dc143c;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
}

.dot:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    transform: scale(1.1);
}

/* 轮播图箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border: 3px solid #dc143c;
    color: #8b0000;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffa500 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.carousel-arrow-prev {
    left: 30px;
}

.carousel-arrow-next {
    right: 30px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* 商品展示区样式 */
.products {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fff 0%, #fef7e6 100%);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #d4af37 0%, #ff6b35 25%, #dc143c 50%, #1e90ff 75%, #d4af37 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #d4af37 0%, #dc143c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(135deg, #fff 0%, #fef9f0 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d4af37 0%, #ff6b35 50%, #dc143c 100%);
    border-radius: 15px;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.product-card:hover::before {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff4500 100%);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image svg {
    width: 100%;
    height: 100%;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-badge.new {
    background: #4ecdc4;
}

.product-badge.sale {
    background: #ff9f43;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #dc143c 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    min-height: auto;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #333;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    text-align: center;
}

.success-animation {
    margin-bottom: 1rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: #4caf50;
    animation: bounce 0.6s ease;
}

.reward-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.reward-amount {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.4rem;
}

.next-sign {
    color: #666;
    font-size: 0.9rem;
}

/* 欢迎模态框样式 */
.welcome-modal-content {
    background: linear-gradient(135deg, #fff 0%, #fef9f0 100%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #d4af37 0%, #ff6b35 50%, #dc143c 100%) 1;
}

.welcome-content {
    text-align: center;
}

.welcome-icon {
    margin-bottom: 1rem;
}

.welcome-icon svg {
    width: 80px;
    height: 80px;
    color: #4caf50;
    animation: bounce 0.6s ease;
}

.welcome-text {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #dc143c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-desc {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.welcome-signin-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border: 2px solid #dc143c;
    color: #8b0000;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.welcome-signin-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffa500 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        gap: 1rem;
    }
    
    .header-left {
        flex: 0 0 auto;
    }
    
    .header-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .header-right {
        flex: 0 0 auto;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .user-actions {
        gap: 0.5rem;
    }
    
    .sign-in-btn,
    .coins-display {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .sign-in-btn span,
    .coins-display span {
        font-size: 0.8rem;
    }
    
    .hero-carousel {
        height: 350px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow-prev {
        left: 15px;
    }
    
    .carousel-arrow-next {
        right: 15px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .download-preview {
        order: -1;
    }
    
    .phone-showcase {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .app-preview {
        padding: 1.5rem;
    }
    
    .app-preview h3 {
        font-size: 1.2rem;
    }
    
    .app-preview p {
        font-size: 0.9rem;
        white-space: nowrap;
        margin-bottom: 1.5rem;
    }
    
    .preview-features {
        gap: 0.6rem;
    }
    
    .preview-item {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .download-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-item {
        justify-content: center;
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .download-title {
        font-size: 2rem;
    }
    
    .download-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
        transform: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 80vh;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .user-actions {
        gap: 0.3rem;
    }
    
    .sign-in-btn,
    .coins-display {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .sign-icon,
    .coin-icon {
        width: 16px;
        height: 16px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-carousel {
        height: 250px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
    
    .carousel-arrow-prev {
        left: 10px;
    }
    
    .carousel-arrow-next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 15px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .products {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
        max-height: 75vh;
        width: 98%;
    }
    
    .download {
        padding: 2rem 0;
    }
    
    .download-title {
        font-size: 1.8rem;
    }
    
    .download-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .feature-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .phone-showcase {
        max-width: 200px;
    }
    
    .app-preview {
        padding: 1rem;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    
    .app-preview h3 {
        font-size: 1rem;
    }
    
    .app-preview p {
        font-size: 0.8rem;
        white-space: nowrap;
        margin-bottom: 1rem;
    }
    
    .preview-features {
        gap: 0.4rem;
    }
    
    .preview-item {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .download-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
}

/* 按钮通用样式 */
button {
    font-family: inherit;
}