/* ========================================
   烤鸡工具箱 - 二级页面样式
   主题色：红色 (#FFFFFF, #C8C8C8)
   与主站风格保持一致
   完全响应式设计
   ======================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
}

:root {
    --primary-color: #FFFFFF;
    --primary-dark: #C8C8C8;
    --primary-light: #E0E0E0;
    --accent-color: #FFFFFF;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --bg-light: #f5f5f5;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-dark: #333333;
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
    --shadow-hover: 0 20px 60px rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

@media (max-width: 768px) {
    .navbar .container { height: 60px; }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.company-slogan {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        transition: var(--transition);
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 110px 0 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #2a0a0a 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-title {
    margin-bottom: 30px;
}

.hero-title .highlight {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.hero-title .subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero 右侧 - 联系面板 + 广告 */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-panel {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.panel-tab {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0a0c;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
}

.panel-body {
    padding: 25px;
    text-align: center;
}

.panel-qr {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.panel-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.panel-divider {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.panel-divider::before,
.panel-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.panel-divider span {
    padding: 0 12px;
    font-size: 0.8rem;
    color: #888;
}

.panel-official {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.official-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.official-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.official-info {
    text-align: left;
}

.official-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.official-desc {
    font-size: 0.75rem;
    color: #888;
}

/* 广告转化卡 */
.promo-card {
    display: block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(170, 170, 170, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 18px 22px;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.promo-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0a0c;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    font-weight: 600;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
}

.promo-text {
    flex: 1;
}

.promo-text h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.promo-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.promo-arrow {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    transition: var(--transition);
}

.promo-card:hover .promo-arrow {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    .hero-title .highlight { font-size: 2.5rem; }
    .hero-title .subtitle { font-size: 1.1rem; }
    .hero-description { font-size: 0.95rem; }
    .panel-qr { width: 130px; height: 130px; }
}

/* ========================================
   按钮
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0a0c;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #0a0a0c;
    transform: translateY(-3px);
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0a0c;
    width: 100%;
    font-size: 0.95rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* ========================================
   通用区块
   ======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }
}

/* ========================================
   工具中心
   ======================================== */
.tools-section {
    background-color: var(--bg-darker);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

/* 重点推荐卡片 */
.tool-featured {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(40, 15, 15, 0.6), rgba(25, 25, 25, 0.9));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.tool-featured .tool-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0a0c;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-bottom-left-radius: 10px;
    letter-spacing: 1px;
}

.tool-featured .tool-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(170, 170, 170, 0.25));
}

.tool-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(170, 170, 170, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.tool-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #888;
}

.tool-size {
    display: none;
}

/* ========================================
   广告位
   ======================================== */
.ads-section {
    background-color: var(--bg-dark);
}

.ad-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(170, 170, 170, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ad-content {
    flex: 1;
}

.ad-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.ad-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.ad-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.ad-icon {
    flex-shrink: 0;
}

.ad-icon svg {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .ad-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .ad-content h3 { font-size: 1.3rem; }
    .ad-icon svg { width: 50px; height: 50px; }
}

/* ========================================
   侧边广告
   ======================================== */
.side-ad {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.side-ad-content {
    color: #0a0a0c;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

.side-ad-tag {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.side-ad-content p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.side-ad-btn {
    display: inline-block;
    background-color: #0a0a0c;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .side-ad {
        right: 10px;
        bottom: 80px;
    }
    .side-ad-content {
        padding: 10px 15px;
    }
}

/* ========================================
   联系我们
   ======================================== */
.contact-section {
    background-color: var(--bg-dark);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(170, 170, 170, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.contact-hint {
    font-size: 0.85rem;
    color: #888;
}

.contact-qr {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.icp-filing a {
    color: #888;
    text-decoration: none;
}

.icp-filing a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* brand weight: Kx bold / studio suffix light */
.kx-b { font-weight: 700; }
.kx-l { font-weight: 300; }

/* wechat id block (replaces the contact QR image) */
.panel-wechat {
    display: inline-block;
    padding: 16px 26px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.panel-wechat .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #8a8a96;
    margin-bottom: 6px;
}
@media (max-width: 768px) {
    .panel-wechat { padding: 12px 20px; font-size: 1.05rem; }
}
