/* ============================================
   团队研究工作室 - 展示网站样式
   ============================================ */

/* ---- CSS 变量 ---- */
:root {
    --primary: #2c3e7a;
    --primary-light: #3a5aad;
    --primary-dark: #1a264f;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --border: #e8ecf1;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

/* ---- 基础重置 ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

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

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.navbar-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    background: var(--primary);
    color: var(--text-white);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

/* ---- 主内容区 ---- */
.main {
    padding-top: var(--header-height);
}

/* ---- Hero 区 ---- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

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

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 36px;
    font-weight: 800;
    display: block;
    color: var(--accent);
}

.hero-stat .label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ---- 通用章节 ---- */
.section {
    padding: 80px 24px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ---- 工作室卡片网格 ---- */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.studio-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.studio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transition: var(--transition);
}

.studio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.studio-card:hover::before {
    height: 6px;
    background: var(--accent);
}

.studio-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.studio-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.studio-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.studio-card .tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ---- 产品介绍区 ---- */
.product-showcase {
    background: var(--bg-card);
}

.product-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 24px;
}

.product-card.reverse {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-info .features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-info .features li {
    font-size: 14px;
    color: var(--text);
    padding: 4px 0;
}

.product-info .features li::before {
    content: '✅ ';
}

.product-visual {
    flex: 0 0 280px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

/* ---- 关于我们 ---- */
.about-section {
    background: var(--bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 24px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

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

.team-member .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.team-member h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-member .role {
    font-size: 13px;
    color: var(--text-light);
}

/* ---- 页脚 ---- */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

.footer p,
.footer a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 2;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ---- 通用按钮 ---- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44,62,122,0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

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

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

/* ---- 页面内页标题 ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-white);
    padding: 80px 24px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- 页面内容区 ---- */
.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.content-section h3 {
    font-size: 18px;
    color: var(--primary);
    margin: 24px 0 12px;
}

.content-section p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    color: var(--text-light);
    line-height: 2;
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 4px;
}

.software-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.software-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: var(--transition);
}

.software-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.software-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.software-item .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.badge-green { background: #d4edda; color: #155724; }
.badge-blue { background: #d1ecf1; color: #0c5460; }
.badge-orange { background: #fff3cd; color: #856404; }
.badge-purple { background: #e8d5f5; color: #6c2d82; }

.software-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---- 面包屑 ---- */
.breadcrumb {
    background: var(--bg);
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-light);
}

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

.breadcrumb span {
    color: var(--text-light);
}

/* ---- 视频展示区块 ---- */
.video-section {
    margin-bottom: 48px;
}

.video-section h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.video-section .video-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* 视频容器 - 16:9 宽高比 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #1a1a2e;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-container:hover {
    box-shadow: var(--shadow-hover);
}

/* 本地视频 */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* 平台嵌入 iframe */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 视频占位（无视频源时显示） */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255,255,255,0.7);
    padding: 24px;
    text-align: center;
}

.video-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.video-placeholder .placeholder-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}

.video-placeholder .placeholder-hint {
    font-size: 13px;
    opacity: 0.5;
    line-height: 1.6;
}

/* 视频源切换标签 */
.video-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.video-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.video-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.video-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

/* 视频底部信息 */
.video-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.video-info-bar .video-source-label {
    font-size: 13px;
    color: var(--text-light);
}

.video-info-bar .video-source-label span {
    color: var(--primary);
    font-weight: 600;
}

.video-info-bar .video-actions {
    display: flex;
    gap: 8px;
}

.video-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.video-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--bg);
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .section-title { font-size: 24px; }
    .section { padding: 48px 16px; }
    .studio-grid { grid-template-columns: 1fr; }
    .product-card { flex-direction: column; padding: 24px; }
    .product-card.reverse { flex-direction: column; }
    .product-visual { flex: none; width: 100%; height: 160px; }
    .product-info .features { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .page-header { padding: 60px 16px 40px; }
    .page-header h1 { font-size: 28px; }
    .page-content { padding: 32px 16px; }
    .software-list { grid-template-columns: 1fr; }
    .team-members { grid-template-columns: 1fr 1fr; }

    .navbar-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .navbar-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .video-tabs { flex-wrap: wrap; }
    .video-info-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .team-members { grid-template-columns: 1fr; }
    .video-tab { font-size: 12px; padding: 6px 14px; }
}