/* 
 * 推特 - 官方平台
 * 域名: autoshopsrL.cn
 * 核心样式表
 */

:root {
    --primary-color: #ff6b00; /* 电光橙 */
    --secondary-color: #0b1d3a; /* 深海军蓝 */
    --text-color: #333333;
    --light-bg: #f5f7fa;
    --dark-bg: #111111;
    --white: #ffffff;
    --gray: #888888;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

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

/* 布局辅助 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.grid {
    display: grid;
    gap: 30px;
}

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

/* 头部导航 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary-color);
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.search-box {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    width: 150px;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray);
}

/* 面包屑 */
.breadcrumb {
    background-color: #e9ecef;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--gray);
    margin: 0 5px;
}

/* 英雄区 Banner */
.hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 29, 58, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e56000;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* 视频卡片 */
.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.video-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background-color: #000;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(255, 107, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-btn::after {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 5px;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
}

.video-tags span {
    display: inline-block;
    background: #f0f0f0;
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

/* 专家卡片 */
.expert-card {
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.expert-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.expert-desc {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

/* FAQ手风琴 */
.faq-item {
    background: var(--white);
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-q {
    padding: 20px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-a {
    padding: 0 20px 20px;
    color: var(--gray);
    display: none;
}

.faq-item.active .faq-a {
    display: block;
}

.faq-item.active .faq-q {
    color: var(--primary-color);
}

/* 用户评论 */
.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px; right: 20px;
    font-size: 60px;
    color: rgba(255, 107, 0, 0.1);
    font-family: serif;
}

.review-text {
    font-size: 15px;
    margin-bottom: 20px;
    font-style: italic;
}

.review-user {
    display: flex;
    align-items: center;
}

.review-user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.review-user-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.review-user-info span {
    font-size: 12px;
    color: var(--gray);
}

/* 底部 */
.footer {
    background-color: var(--dark-bg);
    color: #aaaaaa;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-qrcodes {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 100px; height: 100px;
    margin-bottom: 10px;
    background: var(--white);
    padding: 5px;
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.social-share {
    display: flex;
    gap: 15px;
}

.social-share a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #333;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share a:hover {
    background: var(--primary-color);
}

/* 响应式 */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 36px; }
    .nav { display: none; } /* 移动端应实现汉堡菜单，此处简化 */
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .hero h1 { font-size: 28px; }
    .hero { height: 400px; }
}
