/* 海角网 修车改装视频社区 - 全站样式 */
/* 原创配色: 深碳灰 #1a1a2e | 赛道红 #e63946 | 钛金银 #a8b2c1 | 暗夜蓝 #16213e | 亮白 #f1faee */

:root {
    --carbon: #1a1a2e;
    --racing-red: #e63946;
    --titanium: #a8b2c1;
    --midnight: #16213e;
    --bright: #f1faee;
    --accent-gold: #f4a261;
    --dark-surface: #0d1117;
    --card-bg: #1e2a3a;
    --text-primary: #e8edf3;
    --text-secondary: #8b95a5;
    --border-color: #2a3a4e;
    --gradient-start: #e63946;
    --gradient-end: #f4a261;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--dark-surface);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--racing-red); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-gold); }

img { max-width: 100%; height: auto; display: block; }

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

/* 头部导航 */
.site-header {
    background: linear-gradient(180deg, var(--carbon) 0%, var(--midnight) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--racing-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.5r77ea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.j1ev05r3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.j1ev05r3 img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.j1ev05r3 h1 {
    font-size: 1.6rem;
    color: var(--bright);
    font-weight: 800;
    letter-spacing: 2px;
}

.j1ev05r3 h1 span { color: var(--racing-red); }

.nav-main {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.nav-main a {
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--racing-red);
    background: rgba(230,57,70,0.1);
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--racing-red);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-main a:hover::after { width: 80%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bright);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* 搜索框 */
.bhaaf {
    background: var(--midnight);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.bhaaf .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ur7hrcx {
    flex: 1;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.ur7hrcx input {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.ur7hrcx input:focus { border-color: var(--racing-red); }

.ur7hrcx input::placeholder { color: var(--text-secondary); }

.g88zg {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.g88zg:hover { opacity: 0.85; }

/* Banner */
.d2k3i {
    position: relative;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d2k3i .soei8i {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.rw3qmar {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.rw3qmar h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    line-height: 1.3;
}

.rw3qmar h2 span { color: var(--racing-red); }

.rw3qmar p {
    font-size: 1.15rem;
    color: var(--titanium);
    margin-bottom: 28px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230,57,70,0.4);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--racing-red);
    color: var(--racing-red);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 12px;
}

.btn-outline:hover {
    background: var(--racing-red);
    color: #fff;
}

/* 通用区块 */
.section {
    padding: 70px 0;
}

.section-dark { background: var(--dark-surface); }
.section-alt { background: var(--carbon); }
.section-midnight { background: var(--midnight); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--bright);
}

.section-header h2 span { color: var(--racing-red); }

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.section-header .tag {
    display: inline-block;
    background: rgba(230,57,70,0.15);
    color: var(--racing-red);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* 视频卡片 */
.o3nd6 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.dw16or6 {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.dw16or6:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.3pv66h8 {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.3pv66h8 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.dw16or6:hover .3pv66h8 img { transform: scale(1.08); }

.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(230,57,70,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
}

.play-btn::after {
    content: '';
    width: 0; height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.dw16or6:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.p7ljm4 {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.h516ieo { padding: 16px; }

.h516ieo h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bright);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.e6e4u {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.e6e4u span { display: flex; align-items: center; gap: 4px; }

.ij1vdb {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ij1vdb span {
    background: rgba(230,57,70,0.12);
    color: var(--racing-red);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* 短视频风格 */
.o6m4ly {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.81vrum {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/14;
    cursor: pointer;
}

.81vrum img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.81vrum:hover img { transform: scale(1.05); }

.9ncsm7t {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.9ncsm7t h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.9ncsm7t .views {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}

.81vrum .play-btn {
    width: 48px; height: 48px;
}

/* AI赋能模块 */
.cnehi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.c03w62bh {
    background: linear-gradient(145deg, var(--card-bg), var(--midnight));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.c03w62bh:hover {
    transform: translateY(-5px);
    border-color: var(--racing-red);
}

.2hi7d {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.c03w62bh h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--bright);
}

.c03w62bh p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* 专家展示 */
.tgmdsgs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.beiuhc {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
    text-align: center;
}

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

.beiuhc .avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 24px auto 16px;
    border: 3px solid var(--racing-red);
    object-fit: cover;
}

.beiuhc h3 {
    font-size: 1.1rem;
    color: var(--bright);
    margin-bottom: 4px;
}

.beiuhc .role {
    color: var(--racing-red);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.beiuhc .bio {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0 20px 20px;
    line-height: 1.6;
}

.beiuhc .actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0 20px 24px;
}

.beiuhc .actions a {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* 合作品牌墙 */
.lnxrh {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.lnxrh .np4y6 {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--titanium);
    font-size: 1.1rem;
    font-weight: 700;
    transition: border-color 0.3s;
    min-width: 160px;
    text-align: center;
}

.lnxrh .np4y6:hover { border-color: var(--racing-red); }

/* FAQ */
.19byc5r5 { max-width: 800px; margin: 0 auto; }

.v6q2knja {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.mcgx8 {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--bright);
    transition: background 0.3s;
}

.mcgx8:hover { background: rgba(230,57,70,0.08); }

.mcgx8 .arrow {
    transition: transform 0.3s;
    color: var(--racing-red);
    font-size: 1.2rem;
}

.v6q2knja.open .mcgx8 .arrow { transform: rotate(180deg); }

.yy1m7 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.yy1m7-inner {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.v6q2knja.open .yy1m7 { max-height: 300px; }

/* 用户评论 */
.5iuwr {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.54jocyzu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.cfsbesa {
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-size: 1rem;
}

.54jocyzu p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic;
}

.jzkhuj {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jzkhuj .avatar-sm {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.jzkhuj .name {
    font-weight: 700;
    color: var(--bright);
    font-size: 0.9rem;
}

.jzkhuj .date {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

/* How-To指南 */
.9lfhpib {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.n7wg5h4 {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    counter-increment: step;
}

.n7wg5h4::before {
    content: counter(step);
    position: absolute;
    top: -12px; left: 24px;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.n7wg5h4 h4 {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--bright);
    font-size: 1rem;
}

.n7wg5h4 p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, var(--carbon) 0%, #0a0a16 100%);
    padding: 60px 0 0;
    border-top: 2px solid var(--racing-red);
}

.kafocr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.mbr550 h4 {
    color: var(--bright);
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--racing-red);
    display: inline-block;
}

.mbr550 p,
.mbr550 li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 2;
}

.mbr550 ul { list-style: none; }

.mbr550 ul li a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mbr550 ul li a:hover { color: var(--racing-red); }

.cb599pd {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.cb599pd .qr-item {
    text-align: center;
}

.cb599pd .qr-item img {
    width: 100px; height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cb599pd .qr-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.8hu8zi65 {
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.8hu8zi65 a {
    color: var(--text-secondary);
    margin: 0 4px;
}

.8hu8zi65 a:hover { color: var(--racing-red); }

.15ydu {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.15ydu a { color: var(--racing-red); }

/* 社交分享 */
.gqqx4dni {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.0b1ab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.3s;
}

.0b1ab:hover { opacity: 0.8; color: #fff; }
.0b1ab.wechat { background: #07c160; }
.0b1ab.weibo { background: #e6162d; }
.0b1ab.douyin { background: #161823; border: 1px solid #444; }
.0b1ab.bilibili { background: #00a1d6; }

/* 面包屑 */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.breadcrumb a { color: var(--titanium); }
.breadcrumb a:hover { color: var(--racing-red); }
.breadcrumb span { margin: 0 8px; }

/* 内页通用 */
.page-hero {
    background: linear-gradient(135deg, var(--carbon), var(--midnight));
    padding: 60px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-hero h1 span { color: var(--racing-red); }

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-area {
    padding: 50px 0;
}

.content-area h2 {
    font-size: 1.6rem;
    color: var(--bright);
    margin-bottom: 16px;
}

.content-area h2 span { color: var(--racing-red); }

.content-area h3 {
    font-size: 1.25rem;
    color: var(--bright);
    margin: 24px 0 12px;
}

.content-area p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* 统计数据 */
.7zcdkb {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.h5r2w {
    text-align: center;
    padding: 20px;
}

.h5r2w .num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--racing-red);
    display: block;
}

.h5r2w .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* 联系信息 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
}

.contact-card h3 {
    color: var(--bright);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.contact-card .info-line {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.contact-card .info-line strong { color: var(--bright); min-width: 70px; }

/* 响应式 */
@media (max-width: 768px) {
    .5r77ea { flex-wrap: wrap; }

    .nav-main {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--carbon);
        padding: 10px 0;
    }

    .nav-main.open { display: flex; }

    .nav-main a { padding: 12px 20px; }

    .mobile-toggle { display: block; }

    .d2k3i { height: 50vh; min-height: 360px; }

    .rw3qmar h2 { font-size: 1.8rem; }

    .o3nd6 { grid-template-columns: 1fr; }

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

    .kafocr { grid-template-columns: 1fr; }

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

    .section { padding: 40px 0; }

    .section-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .o6m4ly { grid-template-columns: repeat(2, 1fr); }
    .rw3qmar h2 { font-size: 1.5rem; }
    .j1ev05r3 h1 { font-size: 1.2rem; }
}

/* 懒加载占位 - 默认显示，加载后平滑过渡 */
img[loading="lazy"] {
    opacity: 1;
}

img.loaded {
    opacity: 1;
}

/* 动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 内页列表 */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.list-item {
    display: flex;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.3s;
}

.list-item:hover { transform: translateY(-3px); }

.list-item .thumb {
    width: 140px;
    min-width: 140px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.list-item .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.list-item .info h3 {
    font-size: 0.95rem;
    color: var(--bright);
    margin-bottom: 6px;
}

.list-item .info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
