@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0c10;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 100px;
}

.tab-icon,
.weather-icon,
.feature-icon {
    filter: brightness(0) invert(1);
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(20, 22, 28, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

.top-nav.hide-up {
    transform: translateY(-100%);
}

.nav-title {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #a0a8c0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.weather-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.weather-icon {
    width: 18px;
    height: 18px;
}

.weather-carousel-container {
    position: relative;
    height: 20px;
    overflow: hidden;
    width: 60px;
    text-align: right;
}

.weather-slide {
    position: absolute;
    top: 0;
    right: 0;
    font-weight: 500;
    font-size: 13px;
    color: white;
    white-space: nowrap;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.36, 1), opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.weather-slide.exit-up {
    transform: translateY(-24px);
    opacity: 0;
}

.weather-slide.enter-from-down {
    transform: translateY(24px);
    opacity: 0;
}

.privacy-banner {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 360px;
    background: rgba(28, 30, 36, 0.95);
    backdrop-filter: blur(32px);
    border-radius: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 13px;
    color: #e8e8ed;
    z-index: 2000;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.privacy-banner button {
    padding: 6px 16px;
    border: none;
    border-radius: 40px;
    background: #007aff;
    color: white;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 24px 40px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card {
    background: rgba(28, 30, 36, 0.6);
    backdrop-filter: blur(40px);
    border-radius: 28px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.card-header {
    padding: 16px 20px;
    background: rgba(20, 22, 28, 0.5);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-btn.red {
    background: #ff5f56;
}

.window-btn.yellow {
    background: #ffbd2e;
}

.window-btn.green {
    background: #27c93f;
}

.window-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -0.2px;
}

.card-content {
    padding: 48px 32px;
}

.text-center {
    text-align: center;
}

.card-content h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #8e9dcc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.hero-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.image-card .card-content {
    padding: 32px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-container img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    border-radius: 20px;
    object-fit: cover;
}

.feature-mac-card {
    margin-bottom: 32px;
    overflow: visible;
}

.feature-mac-card:last-child {
    margin-bottom: 0;
}

.feature-mac-card .card-content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    overflow: visible;
}

.feature-mac-card .card-content-row.row-reverse {
    flex-direction: row-reverse;
}

.feature-mac-card .card-content-col {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.feature-mac-card .feature-image-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.feature-mac-card .feature-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 20px;
    display: block;
}

.feature-mac-card .feature-text-wrapper {
    flex: 1;
    overflow: visible;
}

.feature-mac-card .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
}

.feature-mac-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, #8e9dcc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.feature-mac-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-mac-card .feature-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 20px;
}

.product-card {
    background: rgba(28, 30, 36, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    background: rgba(28, 30, 36, 0.8);
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #007aff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 16px;
    width: fit-content;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.product-price {
    margin-bottom: 16px;
}

.product-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.product-price .original-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34c759;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    background: #007aff;
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: auto;
}

.buy-btn:hover {
    opacity: 0.85;
}

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

.team-card {
    background: rgba(28, 30, 36, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    transition: all 0.3s;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-4px);
    background: rgba(28, 30, 36, 0.8);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.team-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.tab-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    height: 68px;
    background: rgba(20, 22, 28, 0.5);
    backdrop-filter: blur(40px);
    border-radius: 44px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.tab-active-bg {
    position: absolute;
    top: 6px;
    left: 0;
    width: 64px;
    height: 56px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1;
    pointer-events: none;
    will-change: transform, width;
}

.tab-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.tab-icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.tab-item span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.tab-item.active .tab-icon {
    opacity: 1;
}

.tab-item.active span {
    color: #ffffff;
    font-weight: 590;
}

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal-content {
    width: 90%;
    max-width: 400px;
    background: rgba(28, 30, 36, 0.95);
    backdrop-filter: blur(40px);
    border-radius: 28px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    padding: 28px;
    text-align: center;
}

.payment-modal-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.payment-modal-content .price {
    font-size: 28px;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 20px;
}

.payment-modal-content .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.payment-modal-content .form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.payment-modal-content .form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(20, 22, 28, 0.8);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.pay-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.pay-btn.alipay {
    background: #1677ff;
    color: white;
}

.pay-btn.wechat {
    background: #07c160;
    color: white;
}

.pay-btn.qqpay {
    background: #12b7f5;
    color: white;
}

.close-modal {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 40px;
    color: white;
    cursor: pointer;
}

@media (max-width: 640px) {
    .card-content h1 {
        font-size: 36px;
    }
    
    .card-content {
        padding: 32px 24px;
    }
    
    .image-container img {
        max-height: 200px;
    }
    
    .tab-bar {
        height: 64px;
    }
    
    .tab-active-bg {
        height: 52px;
        top: 6px;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .tab-item span {
        font-size: 10px;
    }
    
    .weather-carousel-container {
        width: 55px;
    }
    
    .weather-slide {
        font-size: 12px;
    }
    
    .payment-modal-content {
        padding: 20px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }
}

button,
a,
[role="button"],
.tab-item,
.buy-btn,
.pay-btn,
.close-modal,
.privacy-banner button,
.weather-badge,
[onclick],
[data-page] {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

button:focus,
a:focus,
[role="button"]:focus,
.tab-item:focus,
.buy-btn:focus,
.pay-btn:focus,
.close-modal:focus,
.privacy-banner button:focus,
[onclick]:focus,
[data-page]:focus {
    outline: none;
    box-shadow: none;
}

button:focus-visible,
a:focus-visible,
.buy-btn:focus-visible,
.pay-btn:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}