/**
 * InsightDimensional Theme Styles
 * 传统WordPress主题样式
 */

/* ========================================
   CSS变量定义
   ======================================== */
:root {
    --primary: #0071E3;
    --primary-foreground: #ffffff;
    --background: #000000;
    --foreground: #ffffff;
    --card: #1a1a1a;
    --card-foreground: #ffffff;
    --secondary: #333333;
    --secondary-foreground: #ffffff;
    --muted: #666666;
    --muted-foreground: #999999;
    --accent: #0071E3;
    --border: #333333;
    --radius: 0.65rem;
}

/* ========================================
   基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   导航栏样式
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo a {
    color: var(--foreground);
    text-decoration: none;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--card);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-cta {
    min-width: 200px;
    justify-content: center;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 113, 227, 0.4);
}

.icon-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.btn:hover .icon-arrow {
    transform: translateX(4px);
}

/* ========================================
   英雄区域样式
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-orb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
    text-align: center;
    padding: 2rem;
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--foreground);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    text-align: center;
}

.icon-chevron {
    width: 1rem;
    height: 1rem;
    transform: rotate(90deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================
   Section通用样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* ========================================
   业务服务区样式
   ======================================== */
.section-services {
    padding: 6rem 0;
    background: var(--background);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .service-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-item-reverse .service-content {
        order: 2;
    }
    
    .service-item-reverse .service-visual {
        order: 1;
    }
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.service-title {
    font-size: 1.875rem;
    font-weight: 700;
}

.service-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
}

.service-list li {
    color: var(--muted-foreground);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
}

.service-visual {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(0, 113, 227, 0.05));
    border-radius: 1rem;
    height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* ========================================
   方法论区样式
   ======================================== */
.section-methodology {
    padding: 6rem 0;
    background: rgba(51, 51, 51, 0.1);
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .methodology-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.methodology-card {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.methodology-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.methodology-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.methodology-description {
    color: var(--muted-foreground);
}

/* ========================================
   关于我们区样式
   ======================================== */
.section-about {
    padding: 6rem 0;
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.about-text-highlight {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.about-text-highlight strong {
    color: var(--foreground);
    font-weight: 600;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-list {
    list-style: none;
    margin-bottom: 2rem;
}

.about-list li {
    color: var(--muted-foreground);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
}

.about-visual {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(0, 113, 227, 0.05));
    border-radius: 1rem;
    height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ========================================
   项目展示区样式
   ======================================== */
.section-projects {
    padding: 6rem 0;
    background: rgba(51, 51, 51, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: var(--card);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-image {
    height: 12rem;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(0, 113, 227, 0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-card:hover .project-placeholder {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.3), rgba(0, 113, 227, 0.1));
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
}

/* ========================================
   联系区域样式
   ======================================== */
.section-contact {
    padding: 6rem 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .contact-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.contact-info {
    color: var(--muted-foreground);
    margin-top: 2rem;
}

/* ========================================
   资讯区域样式
   ======================================== */
.section-news {
    padding: 6rem 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.news-date {
    color: var(--muted-foreground);
}

.news-category {
    color: var(--primary);
    font-weight: 600;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 0.75rem;
}

/* 资讯列表页样式 */
.news-list {
    max-width: 56rem;
    margin: 0 auto;
}

.news-list-item {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.news-list-image {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-list-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-list-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list-title a:hover {
    color: var(--primary);
}

.news-list-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.news-list-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.news-list-link:hover {
    gap: 0.75rem;
}

.news-author {
    color: var(--muted-foreground);
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: rgba(51, 51, 51, 0.2);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--muted-foreground);
}

.text-muted {
    color: var(--muted-foreground);
}

/* ========================================
   加载动画
   ======================================== */
.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   工具类
   ======================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-sm {
    font-size: 0.875rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.pt-24 {
    padding-top: 6rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
    .md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Orb容器样式（来自orb-effect.js） */
.orb-container {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

.orb-container canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* ========================================
   性能优化
   ======================================== */
section {
    contain: layout style paint;
}

nav {
    contain: layout style;
    transform: translateZ(0);
    will-change: background-color, backdrop-filter;
}

.project-card,
.news-card,
.methodology-card {
    contain: layout style paint;
    transform: translateZ(0);
}
