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

html, body {
    height: 100%;
    overflow: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 导航栏 - Apple官网风格 */
.navbar {
    background-color: rgba(245, 245, 247, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
    width: 98%;
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1d1d1f;
    flex-shrink: 0;
}

.navbar-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.navbar-logo span {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.navbar-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.navbar-link {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
    opacity: 0.8;
}

.navbar-link:hover {
    color: #0071e3;
    opacity: 1;
}

/* 主容器 */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 产品展示 */
.products {
    flex: 1.5;
    padding: 15px 0 20px;
    background-color: #ffffff;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d2d2d7, transparent);
}

.brand-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 85px 0 45px;
    animation: fadeInDown 1s ease-out;
}

.brand-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    letter-spacing: -0.005em;
    line-height: 1.05;
}

.brand-subtitle {
    font-size: 24px;
    color: #86868b;
    letter-spacing: 0.008em;
    font-weight: 400;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.product-item {
    text-align: center;
    padding: 60px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
    background-color: #f5f5f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #d2d2d7;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    max-width: 320px;
    margin: 0 auto;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: none;
    box-shadow: none;
    border-radius: 16px;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-qrcode {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
}

.product-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.product-item p {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 400;
    flex: 1;
    letter-spacing: 0.008em;
    max-width: 280px;
}

.btn {
    display: inline-block;
    background-color: #0071e3;
    color: #fff;
    padding: 16px 32px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 16px 0 0;
    min-width: 160px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    background-color: #005bb5;
    transform: scale(0.98);
}

.product-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: none;
    box-shadow: none;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.product-item:hover .product-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-qrcode {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-qrcode img {
    width: 160px;
    height: 160px;
    margin: 0 0 12px;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-item:hover .product-qrcode img {
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-qrcode p {
    font-size: 14px;
    color: #86868b;
    margin: 0;
    text-align: center;
    letter-spacing: 0.008em;
}



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

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

.btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}

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

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

.product-item {
    animation: fadeIn 0.8s ease-out;
}

.product-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* 页脚 */
.footer {
    flex: 0.03;
    background-color: #f5f5f7;
    padding: 3px;
    color: #86868b;
    border-top: 1px solid #d2d2d7;
    position: relative;
    min-height: 40px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d2d2d7, transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px 15px 5px;
    flex-wrap: wrap;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    flex: 1;
    min-width: 300px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: #86868b;
}

.footer-contact {
    font-size: 14px;
    color: #a1a1a6;
}

.footer-social {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
    align-items: center;
}

.social-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.social-text {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 500;
    text-align: center;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导航栏响应式设计 - Apple风格 */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 12px 16px;
    }
    
    .navbar-links {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 12px;
    }
    
    .navbar-links {
        gap: 16px;
    }
    
    .navbar-link {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .navbar-container {
        padding: 10px 12px;
    }
    
    .navbar-links {
        gap: 12px;
    }
    
    .navbar-link {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 8px 10px;
    }
    
    .navbar-logo img {
        width: 20px;
        height: 20px;
    }
    
    .navbar-logo span {
        font-size: 12px;
    }
    
    .navbar-links {
        gap: 8px;
    }
    
    .navbar-link {
        font-size: 9px;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .brand-title {
        font-size: 48px;
    }

    .brand-subtitle {
        font-size: 20px;
    }

    .products-grid {
        gap: 40px;
        padding: 0 30px;
    }

    .product-item h3 {
        font-size: 20px;
    }

    .product-item p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .main-container {
        height: auto;
        overflow-y: auto;
    }

    .products {
        padding: 40px 0 60px;
    }

    .brand-header {
        margin-bottom: 60px;
        padding: 30px 0;
    }

    .brand-title {
        font-size: 40px;
    }

    .brand-subtitle {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .product-item {
        padding: 30px 20px;
        min-height: 400px;
    }

    .product-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin: 0 0 24px;
    }

    .product-qrcode img {
        width: 160px;
        height: 160px;
    }

    .product-item h3 {
        font-size: 18px;
    }

    .product-item p {
        font-size: 14px;
        margin-bottom: 24px;
    }

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

    .footer-info {
        position: static;
        transform: none;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 30px 0 50px;
    }

    .brand-header {
        margin-bottom: 40px;
        padding: 20px 0;
    }

    .brand-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .brand-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .products-grid {
        gap: 30px;
        padding: 0 15px;
    }

    .product-item {
        padding: 30px 20px;
        min-height: 400px;
        max-width: 100%;
    }

    .product-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin: 0 0 24px;
    }

    .product-qrcode img {
        width: 160px;
        height: 160px;
    }

    .product-item h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .product-item p {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .btn {
        padding: 16px 32px;
        font-size: 16px;
        min-width: 160px;
    }

    .footer-content {
        gap: 20px;
        padding: 15px;
    }

    .footer-social {
        gap: 20px;
        flex-wrap: wrap;
    }

    .social-item {
        flex-direction: column;
        gap: 8px;
    }

    .social-icon {
        width: 70px;
        height: 70px;
    }

    .social-text {
        font-size: 12px;
        text-align: center;
    }
}

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

.hero {
    animation: fadeIn 1s ease-out;
}

.product-item {
    animation: fadeIn 0.8s ease-out;
}

.product-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-item:nth-child(3) {
    animation-delay: 0.4s;
}

