/* 基础样式设置 */
:root {
    --primary-color: #0c2340;
    --secondary-color: #0a1c33;
    --nike-accent: #ff5000;
    --adidas-accent: #0076c0;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f5f5f5;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-line-wrap {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 0;
    top: 0;
    animation: spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite;
}

.loader-line-wrap:nth-child(1) { animation-delay: -50ms; }
.loader-line-wrap:nth-child(2) { animation-delay: -100ms; }
.loader-line-wrap:nth-child(3) { animation-delay: -150ms; }

.loader-line {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: absolute;
}

.loader-line-wrap:nth-child(1) .loader-line {
    border-top: 2px solid var(--nike-accent);
    animation: spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite;
}

.loader-line-wrap:nth-child(2) .loader-line {
    border-right: 2px solid var(--adidas-accent);
    animation: spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite reverse;
}

.loader-line-wrap:nth-child(3) .loader-line {
    border-bottom: 2px solid var(--text-light);
    animation: spin 2000ms cubic-bezier(.175, .885, .32, 1.275) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 40px 20px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-container {
    animation: fadeInUp 1s ease;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.header-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.dynamic-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 3s infinite alternate;
}

.dynamic-shape:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.dynamic-shape:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 50px;
    right: 50px;
    animation-delay: 0.5s;
}

.dynamic-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 80px;
    right: 20px;
    animation-delay: 1s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.7; }
}

.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.header-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

.header-wave path {
    fill: var(--background-light);
}

/* 品牌导航 */
.brand-nav {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: var(--background-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.brand-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px;
    margin: 0 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.brand-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.brand-tab.active::before {
    width: 70%;
}

.brand-tab:hover {
    transform: translateY(-5px);
}

.brand-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.brand-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    transition: transform var(--transition-fast);
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    transition: transform var(--transition-fast);
}

.brand-tab:hover .brand-icon {
    transform: scale(1.2);
}

.nike-icon {
    fill: var(--nike-accent);
}

.adidas-icon {
    fill: var(--adidas-accent);
}

/* 店铺展示区域 */
.stores-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.brand-stores {
    display: none;
    animation: fadeIn 0.5s ease;
}

.brand-stores.active {
    display: block;
}

.brand-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.nike-logo svg {
    fill: var(--nike-accent);
}

.adidas-logo svg {
    fill: var(--adidas-accent);
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: currentColor;
}

.nike-intro .brand-name::after {
    background-color: var(--nike-accent);
}

.adidas-intro .brand-name::after {
    background-color: var(--adidas-accent);
}

.brand-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* 店铺卡片 */
.store-card {
    background-color: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 30px;
    transform: translateY(0);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.store-slideshow {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.slide-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 5px;
    transition: all var(--transition-fast);
}

.slide-arrow:hover {
    background-color: white;
    transform: scale(1.1);
}

.slide-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
    stroke-width: 2;
    fill: none;
}

.slide-dots {
    display: flex;
    margin: 0 10px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slide-dot.active {
    background-color: white;
    transform: scale(1.3);
}

.store-info {
    padding: 20px;
}

.store-name {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.store-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-address, .store-phone, .store-time {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.store-address svg, .store-phone svg, .store-time svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: #666;
    flex-shrink: 0;
    margin-top: 3px;
}

.store-phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.store-phone a:hover {
    color: var(--nike-accent);
}

#nike-stores .store-phone a:hover {
    color: var(--nike-accent);
}

#adidas-stores .store-phone a:hover {
    color: var(--adidas-accent);
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-info {
    text-align: right;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 运动元素动画 */
.sports-elements {
    position: fixed;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.sports-element {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
}

.running-man {
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1L6 8.3V13h2V9.6l1.8-.7"/></svg>');
    top: 30%;
    left: 10%;
    animation: moveUpDown 15s infinite alternate ease-in-out;
}

.basketball {
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z"/></svg>');
    bottom: 20%;
    right: 10%;
    animation: bounce 10s infinite ease-in-out;
}

@keyframes moveUpDown {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-100px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-150px) rotate(180deg); }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .header-visual {
        display: none;
    }
    
    .brand-nav {
        padding: 10px;
    }
    
    .brand-tab {
        padding: 10px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .store-slideshow {
        height: 200px;
    }
}

/* iOS特定优化 */
@supports (-webkit-touch-callout: none) {
    .store-card {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .slide-arrow {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
}
