/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif SC", "SimSun", "STSong", "Songti SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background-color: #f8f5ef;
    color: #3d2914;
    line-height: 1.6;
}

/* 轮播图额外样式 */
.carousel-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #e8e0d0;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    object-position: top;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    font-size: 20px;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

@media (max-width: 640px) {
    .carousel-container {
        height: 500px;
    }
}

/* 动画 */
.wechat-tip {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.arrow-bounce {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.step-item {
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-amber {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    color: white;
}

.btn-amber:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: scale(1.05);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 工具卡片 */
.tool-card {
    display: block;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid #f59e0b;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: #d97706;
    background: #fffbeb;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 标题 */
h1, h2, h3, h4 {
    font-weight: bold;
    color: #78350f;
}

/* 工具选择器 */
.tool-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.tool-option {
    padding: 0.75rem;
    border: 2px solid #fbbf24;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tool-option:hover, .tool-option.active {
    border-color: #d97706;
    background: #fffbeb;
}

/* 手机边框样式 */
.phone-frame {
    background: linear-gradient(135deg, #2d1810 0%, #1a0f0a 100%);
    border-radius: 50px;
    padding: 15px 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #1a0f0a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    background: #000;
    margin-top: 35px;
}

.phone-screen img {
    width: 100%;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
}

/* 二维码容器 */
.qrcode-box {
    background: white;
    border: 4px dashed #d97706;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: inline-block;
}

/* 微信提示 */
.wechat-tip {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.arrow-bounce {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .tool-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tool-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 轮播图 */
.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 实用类 */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.hidden { display: none !important; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-800 { background-color: #78350f; }
.bg-amber-900 { background-color: #5c2d0c; }
.text-amber-100 { color: #fef3c7; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #78350f; }
.text-amber-900 { color: #5c2d0c; }
.text-white { color: white; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: bold; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.inline-block { display: inline-block; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.bg-amber-50 { background-color: #fffbeb; }
.border-l-4 { border-left-width: 4px; }
.border-amber-500 { border-color: #d97706; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
