/* CUPPA 台球杆官网 - 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

/* Tailwind Fallback - 关键样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 金色渐变文字 */
.gold-gradient {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 金色按钮 */
.btn-gold {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(245, 175, 25, 0.4);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    padding: 1rem 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #f5af19;
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(245, 175, 25, 0.25);
}

/* 表单输入 */
.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1.125rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #f5af19;
    box-shadow: 0 0 20px rgba(245, 175, 25, 0.3);
}

/* 网格系统 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 5rem;
}

/* 当CDN加载失败时的样式覆盖 */
html.no-tailwind .fixed { position: fixed; }
html.no-tailwind .top-0 { top: 0; }
html.no-tailwind .left-0 { left: 0; }
html.no-tailwind .right-0 { right: 0; }
html.no-tailwind .z-50 { z-index: 50; }
html.no-tailwind .bg-black\/30 { background: rgba(0,0,0,0.3); }
html.no-tailwind .backdrop-blur-lg { backdrop-filter: blur(16px); }
html.no-tailwind .border-b { border-bottom: 1px solid rgba(255,255,255,0.1); }
html.no-tailwind .border-white\/10 { border-color: rgba(255,255,255,0.1); }
html.no-tailwind .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
html.no-tailwind .mx-auto { margin-left: auto; margin-right: auto; }
html.no-tailwind .px-4 { padding-left: 1rem; padding-right: 1rem; }
html.no-tailwind .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
html.no-tailwind .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
html.no-tailwind .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
html.no-tailwind .flex { display: flex; }
html.no-tailwind .items-center { align-items: center; }
html.no-tailwind .justify-center { justify-content: center; }
html.no-tailwind .justify-between { justify-content: space-between; }
html.no-tailwind .space-x-4 > * + * { margin-left: 1rem; }
html.no-tailwind .space-x-8 > * + * { margin-left: 2rem; }
html.no-tailwind .space-y-4 > * + * { margin-top: 1rem; }
html.no-tailwind .space-y-8 > * + * { margin-top: 2rem; }
html.no-tailwind .text-2xl { font-size: 1.5rem; line-height: 2rem; }
html.no-tailwind .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
html.no-tailwind .font-black { font-weight: 900; }
html.no-tailwind .tracking-wider { letter-spacing: 0.05em; }
html.no-tailwind .text-gray-300 { color: rgba(209, 213, 219, 1); }
html.no-tailwind .text-gray-400 { color: rgba(156, 163, 175, 1); }
html.no-tailwind .mb-2 { margin-bottom: 0.5rem; }
html.no-tailwind .mb-4 { margin-bottom: 1rem; }
html.no-tailwind .mb-6 { margin-bottom: 1.5rem; }
html.no-tailwind .mb-8 { margin-bottom: 2rem; }
html.no-tailwind .mt-4 { margin-top: 1rem; }
html.no-tailwind .p-6 { padding: 1.5rem; }
html.no-tailwind .rounded-2xl { border-radius: 1rem; }
html.no-tailwind .rounded-full { border-radius: 9999px; }
html.no-tailwind .border { border-width: 1px; }
html.no-tailwind .w-8 { width: 2rem; }
html.no-tailwind .hidden { display: none; }
html.no-tailwind .md\\:flex { display: none; }
@media (min-width: 768px) {
    html.no-tailwind .md\\:flex { display: flex !important; }
    html.no-tailwind .md\\:hidden { display: none !important; }
}
html.no-tailwind .hidden { display: none; }

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        padding: 0.75rem 1rem;
    }
}

/* Tailwind关键工具类备用 */
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

.aspect-square { aspect-ratio: 1/1; }
.object-cover { object-fit: cover; }

.bg-white\\/5 { background: rgba(255,255,255,0.05); }
.bg-black\\/50 { background: rgba(0,0,0,0.5); }
.bg-gradient-to-r { background: linear-gradient(to right, #f5af19, #f12711); }

.rounded-xl { border-radius: 0.75rem; }

.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }

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

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.min-h-screen { min-height: 100vh; }
.pt-20 { padding-top: 5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-6 { padding: 1.5rem; }

.overflow-hidden { overflow: hidden; }

.cursor-pointer { cursor: pointer; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

