/* =========================================
   1. 字体定义 (Font Faces)
   ========================================= */
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Normal.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Demibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* =========================================
   2. 全局样式 (Global Styles)
   ========================================= */
:root {
    --primary-orange: #E95513; /* 利欧橙 */
    --primary-hover: #D0460D;
    --text-dark: #1F2937;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --tech-blue: #0066CC;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'MiSans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { background-color: var(--bg-white); color: var(--text-dark); line-height: 1.6; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 16px; border:none; }
.btn-primary { background-color: var(--primary-orange); color: white; box-shadow: 0 4px 6px rgba(233, 85, 19, 0.2); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-inverse { background-color: white; color: var(--primary-orange); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-inverse:hover { background-color: #f0f0f0; transform: translateY(-2px); }

.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.section-subtitle { text-align: center; font-size: 18px; color: var(--text-gray); max-width: 700px; margin: 0 auto 60px auto; }

/* =========================================
   2. 导航栏
   ========================================= */
header { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; height: 72px; display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { font-size: 24px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 12px; }
.logo span { font-size: 14px; font-weight: 500; color: var(--text-gray); padding-left: 12px; border-left: 1px solid var(--border-color); }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-gray); position: relative; }
.nav-links a:hover { color: var(--primary-orange); }
.hot-badge { background-color: #FF4500; color: white; font-size: 10px; padding: 2px 5px; border-radius: 4px; vertical-align: super; margin-left: 2px; font-weight: 700; }

/* =========================================
   3. 首屏 (Hero Section)
   ========================================= */
.hero { padding-top: 160px; padding-bottom: 80px; background: radial-gradient(circle at 80% 20%, rgba(233, 85, 19, 0.05) 0%, transparent 40%); }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 56px; line-height: 1.1; margin-bottom: 24px; color: var(--text-dark); }
.hero-text h1 span { color: var(--primary-orange); }
.hero-text p { font-size: 20px; color: var(--text-gray); margin-bottom: 40px; max-width: 600px; } 

.hero-visual { flex: 1; height: 420px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.dynamic-report-box { width: 380px; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px -12px rgba(0,0,0,0.1); border: 1px solid var(--border-color); overflow: hidden; transform: rotateY(-5deg) rotateX(2deg); transition: transform 0.3s; position: relative; }
.dynamic-report-box:hover { transform: rotateY(0) rotateX(0); }
.box-header { background: #FFFFFF; border-bottom: 1px solid var(--border-color); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); }
.box-title { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.box-title::before { content:''; width:8px; height:8px; background:var(--primary-orange); border-radius:50%; display:inline-block; }
.status-badge { background: #F3F4F6; color: var(--text-gray); font-size: 10px; padding: 2px 8px; border-radius: 12px; border: 1px solid var(--border-color); font-weight: 600; }
.scroll-window { height: 320px; padding: 0 20px; overflow: hidden; position: relative; background: #FFF; }
.scroll-window::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 30px; background: linear-gradient(to bottom, #fff, transparent); z-index: 2; }
.scroll-window::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; background: linear-gradient(to top, #fff, transparent); z-index: 2; }
.scroll-content { animation: scrollVertical 12s linear infinite; }
.report-section { margin-bottom: 25px; border-left: 2px solid #E5E7EB; padding-left: 15px; }
.section-head { font-size: 13px; font-weight: 700; color: var(--primary-orange); margin-bottom: 8px; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.log-item { font-size: 13px; color: var(--text-gray); margin-bottom: 6px; line-height: 1.5; }
.log-highlight { color: #1F2937; font-weight: 600; background: #FFF7ED; padding: 0 4px; border-radius: 2px; border: 1px solid rgba(233, 85, 19, 0.1); }
@keyframes scrollVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* =========================================
   4. 滑动版块 (Slider)
   ========================================= */
#merged-logic { background-color: var(--bg-light); padding: 100px 0; position: relative; overflow: hidden; }
.slider-wrapper { position: relative; min-height: 580px; }
.slide { display: none; width: 100%; animation: fadeEffect 0.6s; height: 100%; }
.slide.active { display: block; }
@keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }

.merged-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Slide 1 Styles */
.integrated-layout { display: flex; gap: 40px; height: 100%; align-items: stretch; }
.layout-context { flex: 0 0 32%; display: flex; flex-direction: column; justify-content: center; }
.layout-context h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); line-height: 1.2; }
.layout-context h2 span { color: var(--primary-orange); }
.layout-context .logic-desc { font-size: 15px; color: var(--text-gray); margin-bottom: 30px; line-height: 1.5; }
.mini-cmp-card { padding: 16px; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--border-color); }
.mini-cmp-card.old { background: #F3F4F6; opacity: 0.8; }
.mini-cmp-card.new { background: white; border-color: var(--primary-orange); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.mini-cmp-card.new::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary-orange); }
.mini-cmp-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mini-cmp-text { font-size: 12px; color: var(--text-gray); line-height: 1.4; }
.layout-engine { flex: 1; background: white; border-radius: 16px; border: 1px solid rgba(233, 85, 19, 0.15); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.engine-input-layer { background: linear-gradient(to right, #FFF5F0, #EFF6FF); padding: 20px 25px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.input-block { display: flex; align-items: center; gap: 12px; }
.input-icon { font-size: 20px; width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.input-info h5 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.input-info p { font-size: 11px; color: var(--text-gray); line-height: 1.2; }
.input-operator { font-weight: 800; color: var(--primary-orange); font-size: 20px; padding: 0 15px; }
.engine-core-grid { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; background: #FFFFFF; }
.core-tech-item { border: 1px solid var(--bg-light); background: #FAFAFA; border-radius: 10px; padding: 18px; transition: all 0.3s ease; display: flex; flex-direction: column; }
.core-tech-item:hover { background: white; border-color: rgba(233, 85, 19, 0.3); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.tech-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tech-tag { font-size: 11px; font-weight: 600; color: white; background: var(--primary-orange); padding: 4px 8px; border-radius: 4px; }
.tech-icon { font-size: 18px; opacity: 0.8; }
.tech-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.tech-desc { font-size: 12px; color: var(--text-gray); line-height: 1.5; flex: 1; }

/* Slide 2 Styles */
.slide-2-title { white-space: nowrap; font-size: 26px !important; }
.brand-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.stat-item { background: white; border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--text-dark); transition: transform 0.2s; }
.stat-item:hover { transform: translateY(-2px); border-color: rgba(233, 85, 19, 0.3); }
.stat-icon { color: var(--primary-orange); font-weight: bold; flex-shrink: 0; padding-top: 1px; }
.partners-box-refined { background: linear-gradient(to right, #EFF6FF, #ffffff); border-left: 4px solid var(--primary-orange); padding: 20px 24px; border-radius: 0 8px 8px 0; box-shadow: var(--shadow-sm); }
.partners-text { margin-bottom: 12px; font-size: 14px; color: var(--text-gray); line-height: 1.5; }
.tags-row { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-tag { display: inline-flex; align-items: center; background-color: #FFF7ED; color: var(--primary-orange); border: 1px solid rgba(233, 85, 19, 0.2); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.03); transition: all 0.2s ease; }
.partner-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(233, 85, 19, 0.15); background-color: white; }
.award-img-container { height: 100%; display: flex; align-items: center; justify-content: center; }
.award-img { width: auto; max-height: 380px; max-width: 100%; border-radius: 8px; object-fit: contain; }

/* Slider Controls */
.slider-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; z-index: 10; }
.slider-btn { pointer-events: auto; background: white; border: 1px solid var(--border-color); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dark); box-shadow: var(--shadow-md); transition: all 0.2s; font-size: 20px; }
.slider-btn:hover { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }
.slider-btn.prev { transform: translateX(-70px); }
.slider-btn.next { transform: translateX(70px); }
.slider-dots { text-align: center; margin-top: 30px; }
.dot { height: 10px; width: 10px; margin: 0 6px; background-color: #D1D5DB; border-radius: 50%; display: inline-block; cursor: pointer; transition: all 0.3s; }
.dot.active { background-color: var(--primary-orange); width: 30px; border-radius: 5px; }

/* =========================================
   5. ARO 体验中心 (Updated)
   ========================================= */
#demo { background-color: white; padding: 60px 0; }

.demo-center-wrapper {
    background: #F9FAFB;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 800px; /* Increased height for long reports */
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

/* Top Nav */
.demo-nav-header { 
    background: white; 
    padding: 0 30px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-bottom: 1px solid var(--border-color);
}
.demo-tabs { 
    display: flex; 
    gap: 10px; 
    background: #F3F4F6;
    padding: 4px;
    border-radius: 8px;
}
.d-tab { 
    padding: 8px 20px; 
    color: var(--text-gray); 
    cursor: pointer; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 600; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
}
.d-tab:hover { color: var(--primary-orange); }
.d-tab.active { 
    color: var(--text-dark); 
    background: white; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Content Area */
.demo-content-area { padding: 30px; flex: 1; position: relative; }
.demo-view { display: none; animation: fadeIn 0.4s ease; height: 100%; }
.demo-view.active { display: block; }

/* Layouts */
.analysis-layout, .content-gen-layout { display: flex; gap: 30px; height: 650px; }
.dashboard-layout { display: flex; flex-direction: column; gap: 25px; }

/* Config Panel (Left) */
.analysis-config { 
    width: 320px; 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    box-shadow: var(--shadow-sm);
}
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-gray); margin-bottom: 8px; }
.form-select, .form-input { 
    width: 100%; padding: 10px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 14px; outline: none; transition: border 0.2s; background: #F9FAFB;
}
.form-select:focus, .form-input:focus { border-color: var(--primary-orange); background: white; }
/* Readonly input style */
.form-input[readonly] { background: #E5E7EB; color: #6B7280; cursor: not-allowed; border-color: #E5E7EB; }

.analysis-btn { 
    width: 100%; background: var(--primary-orange); color: white; padding: 12px; border-radius: 6px; font-weight: 600; cursor: pointer; margin-top: auto; border:none; transition: all 0.2s; 
}
.analysis-btn:hover { background: var(--primary-hover); box-shadow: 0 4px 10px rgba(233, 85, 19, 0.2); }

/* Report Window (Right) */
.report-window { 
    flex: 1; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    background: white; 
    box-shadow: var(--shadow-sm);
}
.report-header { 
    background: #F9FAFB; 
    padding: 15px 20px; 
    border-bottom: 1px solid var(--border-color);
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.report-title { font-weight: 700; color: var(--text-dark); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.download-btn { font-size: 12px; color: var(--primary-orange); cursor: pointer; font-weight: 600; border: 1px solid var(--primary-orange); padding: 4px 10px; border-radius: 4px; transition: all 0.2s; }
.download-btn:hover { background: var(--primary-orange); color: white; }

.report-body { padding: 30px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.7; color: var(--text-dark); }
.report-placeholder { text-align:center; padding-top:100px; color:#9CA3AF; }

/* Generated Content Styling (Markdown-like) */
.generated-md h1 { font-size: 22px; margin-bottom: 15px; color: var(--text-dark); border-bottom: 2px solid #E5E7EB; padding-bottom: 10px; line-height: 1.4; }
.generated-md h2 { font-size: 18px; margin-top: 25px; margin-bottom: 12px; color: var(--primary-orange); font-weight: 700; border-left: 4px solid var(--primary-orange); padding-left: 10px; }
.generated-md h3 { font-size: 16px; margin-top: 20px; margin-bottom: 10px; font-weight: 700; color: #1F2937; }
.generated-md h4 { font-size: 15px; margin-top: 15px; margin-bottom: 8px; font-weight: 700; color: #374151; }
.generated-md p { margin-bottom: 15px; color: #4B5563; }
.generated-md ul, .generated-md ol { margin-bottom: 15px; padding-left: 20px; }
.generated-md li { margin-bottom: 5px; color: #4B5563; }
.generated-md strong { color: #111827; font-weight: 700; }
.generated-md em { font-style: italic; color: #6B7280; }
.generated-md hr { border: none; border-top: 1px solid #E5E7EB; margin: 30px 0; }
.generated-md blockquote { border-left: 4px solid var(--primary-orange); padding-left: 15px; margin: 15px 0; color: #6B7280; font-style: italic; background: #FFF7ED; padding: 10px 15px; border-radius: 0 4px 4px 0; }
.generated-md code { background: #F3F4F6; padding: 2px 5px; border-radius: 4px; font-family: monospace; color: #E95513; font-size: 13px; }
.generated-md pre { background: #1F2937; color: #F9FAFB; padding: 15px; border-radius: 8px; overflow-x: auto; margin-bottom: 15px; font-size: 13px; }
.generated-md pre code { background: transparent; color: inherit; padding: 0; }

/* Report Table Styles */
.excel-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 20px 0; }
.excel-table th { text-align: left; background: #F3F4F6; padding: 10px; color: var(--text-gray); font-weight: 600; border: 1px solid #E5E7EB; }
.excel-table td { padding: 10px; border: 1px solid #E5E7EB; color: var(--text-dark); vertical-align: top; }
.excel-table tr:nth-child(even) { background: #FAFAFA; }

/* Dashboard Styles */
.industry-selector { display: flex; gap: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.ind-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border-color); font-size: 13px; cursor: pointer; color: var(--text-gray); transition: all 0.2s; background: white; }
.ind-btn:hover { border-color: var(--primary-orange); color: var(--primary-orange); }
.ind-btn.active { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric-card { background: white; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); padding: 25px; border-radius: 12px; text-align: center; position: relative; overflow: hidden; transition: transform 0.2s; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-card.highlight { border-top: 4px solid var(--primary-orange); }
.m-title { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.m-value { font-size: 32px; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.m-trend { font-size: 12px; color: #10B981; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }

.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; height: 260px; }
.chart-box { border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; background: white; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.chart-title { font-size: 15px; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }

.comp-bar-group { display: flex; flex-direction: column; gap: 15px; flex: 1; justify-content: center; }
.comp-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.comp-name { width: 60px; text-align: right; color: var(--text-gray); }
.progress-bg { flex: 1; height: 10px; background: #F3F4F6; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: #D1D5DB; border-radius: 5px; width: 0; transition: width 1s ease; }
.progress-fill.me { background: var(--primary-orange); }
.comp-val { width: 40px; font-weight: 600; }

.sentiment-donut { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(#10B981 0% 98%, #E5E7EB 98% 100%); margin: auto; position: relative; }
.sentiment-donut::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; background: white; border-radius: 50%; }
.sent-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.sent-big { font-size: 24px; font-weight: 800; color: #10B981; line-height: 1; }
.sent-label { font-size: 10px; color: var(--text-light); }

.definition-bar { margin-top: 10px; padding: 15px; background: white; border-radius: 8px; font-size: 12px; color: #1F2937; line-height: 1.6; border: 1px solid var(--border-color); display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 15px; }
.def-item strong { color: var(--tech-blue); display: block; margin-bottom: 2px; }

/* Loading Skeleton */
.skeleton-loader { display: none; padding: 20px; }
.sk-line { height: 12px; background: #F3F4F6; margin-bottom: 12px; border-radius: 4px; width: 100%; animation: pulse 1.5s infinite; }
.sk-w60 { width: 60%; } .sk-w80 { width: 80%; } .sk-h { height: 24px; margin-bottom: 20px; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   响应式适配 - 平板 (Tablet)
   ========================================= */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    
    /* Hero */
    .hero-content { gap: 40px; }
    .hero-text h1 { font-size: 42px; }
    .hero-visual { height: 350px; }
    .dynamic-report-box { width: 320px; }
    
    /* Slider */
    .slider-btn.prev { transform: translateX(-20px); }
    .slider-btn.next { transform: translateX(20px); }
    .integrated-layout { gap: 25px; }
    .layout-context { flex: 0 0 38%; }
    .layout-context h2 { font-size: 26px; }
    .engine-input-layer { flex-wrap: wrap; gap: 15px; }
    .input-operator { padding: 0 10px; }
    
    /* Slide 2 */
    .merged-grid { gap: 30px; }
    .slide-2-title { font-size: 22px !important; white-space: normal; }
    
    /* Footer */
    .footer-cta-box { padding: 40px; }
    .cta-text h2 { font-size: 26px; }
}

/* =========================================
   响应式适配 - 移动端 (Mobile)
   ========================================= */
@media (max-width: 768px) {
    /* 全局调整 */
    .container { padding: 0 16px; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 26px; margin-bottom: 12px; }
    .section-subtitle { font-size: 15px; margin-bottom: 40px; }
    
    /* 导航栏 */
    header { height: 60px; }
    .nav-container { padding: 0 16px; }
    .logo img { width: 140px !important; }
    .logo span { display: none; }
    .nav-links { display: none; }
    header .btn { display: none; }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* 移动端导航菜单 */
    .mobile-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    .mobile-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .mobile-nav a {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-nav a:hover {
        background: var(--bg-light);
        color: var(--primary-orange);
    }
    .mobile-nav .btn {
        display: block;
        margin: 16px 20px;
        text-align: center;
    }
    
    /* Hero 区域 */
    .hero { padding-top: 100px; padding-bottom: 50px; }
    .hero-content { 
        flex-direction: column; 
        gap: 40px; 
        text-align: center;
    }
    .hero-text h1 { font-size: 32px; margin-bottom: 16px; }
    .hero-text h1 br { display: none; }
    .hero-text p { font-size: 16px; margin-bottom: 24px; max-width: 100%; }
    .hero-visual { 
        height: auto; 
        width: 100%;
        perspective: none;
    }
    .dynamic-report-box { 
        width: 100%; 
        max-width: 340px;
        margin: 0 auto;
        transform: none; 
    }
    .dynamic-report-box:hover { transform: none; }
    .scroll-window { height: 260px; padding: 0 15px; }
    
    /* Slider 版块 */
    #merged-logic { padding: 60px 0; }
    .slider-wrapper { min-height: auto; }
    .slider-controls { display: none; } /* 移动端隐藏左右箭头 */
    .slider-dots { margin-top: 20px; }
    
    /* Slide 1 */
    .integrated-layout { 
        flex-direction: column; 
        gap: 30px;
    }
    .layout-context { 
        flex: none;
        width: 100%;
    }
    .layout-context h2 { font-size: 24px; text-align: center; }
    .layout-context h2 br { display: none; }
    .layout-context .logic-desc { text-align: center; font-size: 14px; }
    .mini-cmp-card { padding: 14px; }
    .mini-cmp-title { font-size: 14px; }
    .mini-cmp-text { font-size: 12px; }
    
    .layout-engine { border-radius: 12px; }
    .engine-input-layer { 
        flex-direction: column; 
        gap: 15px; 
        padding: 15px;
        text-align: center;
    }
    .input-block { justify-content: center; }
    .input-operator { padding: 0; font-size: 18px; }
    .input-info { text-align: center !important; }
    .engine-core-grid { 
        grid-template-columns: 1fr; 
        padding: 15px;
        gap: 15px;
    }
    .core-tech-item { padding: 15px; }
    .tech-title { font-size: 14px; }
    .tech-desc { font-size: 12px; }
    
    /* Slide 2 */
    .merged-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .slide-2-title { 
        font-size: 20px !important; 
        white-space: normal; 
        text-align: center;
    }
    .logic-left .logic-desc { text-align: center; }
    .brand-stats-grid { 
        grid-template-columns: 1fr; 
        gap: 10px;
    }
    .stat-item { 
        font-size: 13px;
        padding: 12px;
    }
    .stat-item[style*="grid-column"] { grid-column: span 1 !important; }
    .partners-box-refined { padding: 15px; }
    .partners-text { font-size: 13px; }
    .award-img-container { padding: 0 20px; }
    .award-img { max-height: 280px; }
    
    /* ARO 体验中心 */
    #demo { padding: 40px 0; }
    .demo-center-wrapper { 
        min-height: auto;
        border-radius: 12px;
    }
    .demo-nav-header { 
        padding: 0 15px; 
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .demo-tabs { 
        overflow-x: auto; 
        max-width: 100%;
        gap: 6px;
        padding: 3px;
        -webkit-overflow-scrolling: touch;
    }
    .d-tab { 
        white-space: nowrap; 
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .demo-content-area { padding: 15px; }
    .analysis-layout, .content-gen-layout { 
        flex-direction: column; 
        height: auto;
        gap: 20px;
    }
    .analysis-config { 
        width: 100%; 
        padding: 20px;
        gap: 15px;
    }
    .report-window { 
        width: 100%; 
        min-height: 400px;
    }
    .report-body { padding: 20px; }
    .report-placeholder { padding-top: 60px; }
    
    /* Dashboard */
    .industry-selector { 
        flex-wrap: wrap; 
        gap: 8px;
    }
    .ind-btn { 
        padding: 6px 12px; 
        font-size: 12px;
    }
    .metrics-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 12px;
    }
    .metric-card { padding: 15px; }
    .m-title { font-size: 11px; }
    .m-value { font-size: 24px; }
    .m-trend { font-size: 11px; }
    
    .charts-row { 
        grid-template-columns: 1fr; 
        height: auto;
        gap: 15px;
    }
    .chart-box { padding: 15px; min-height: 200px; }
    .chart-title { font-size: 14px; margin-bottom: 15px; }
    .comp-item { font-size: 12px; }
    .comp-name { width: 50px; }
    
    .sentiment-donut { width: 120px; height: 120px; }
    .sentiment-donut::before { width: 85px; height: 85px; }
    .sent-big { font-size: 20px; }
    
    .definition-bar { 
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
        font-size: 11px;
        padding: 12px;
    }
    
    /* Generated content */
    .generated-md h1 { font-size: 18px; }
    .generated-md h2 { font-size: 16px; }
    .generated-md h3 { font-size: 15px; }
    .generated-md h4 { font-size: 14px; }
    .generated-md p, .generated-md li { font-size: 14px; }
    .excel-table { font-size: 12px; }
    .excel-table th, .excel-table td { padding: 8px; }
    
    /* Footer */
    footer { padding: 50px 0 30px 0; }
    .footer-cta-box { 
        flex-direction: column; 
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    .cta-text h2 { font-size: 22px; }
    .cta-text p { font-size: 14px; margin-bottom: 20px; }
    .cta-text p br { display: none; }
    .qr-box { padding: 12px; }
    .qr-image { width: 120px; height: 120px; }
    .footer-bottom { font-size: 12px; margin-bottom: 8px; }
    
    /* Modal */
    .modal-content { 
        padding: 30px 20px; 
        max-width: 320px;
    }
    .modal-qr-img { width: 160px; height: 160px; }
    #modal-title { font-size: 18px; }
}

/* =========================================
   响应式适配 - 小屏手机 (Small Mobile)
   ========================================= */
@media (max-width: 480px) {
    .hero-text h1 { font-size: 26px; }
    .hero-text p { font-size: 14px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    
    .layout-context h2 { font-size: 20px; }
    .slide-2-title { font-size: 18px !important; }
    
    .metrics-grid { grid-template-columns: 1fr; }
    .definition-bar { grid-template-columns: 1fr; }
    
    .d-tab { padding: 6px 10px; font-size: 12px; }
    
    .section-title { font-size: 22px; }
    .section-subtitle { font-size: 14px; }
}

/* 默认隐藏移动端菜单按钮 */
.mobile-menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .mobile-nav { display: block; }
}

/* =========================================
   6. 底部 & 弹窗
   ========================================= */
footer { background-color: var(--bg-light); padding: 80px 0 40px 0; border-top: 1px solid var(--border-color); }
.footer-cta-box { display: flex; justify-content: space-between; align-items: center; background: var(--primary-orange); color: white; padding: 60px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: 60px; border: none; }
.cta-text h2 { color: white; margin-bottom: 16px; font-size: 32px; }
.cta-text p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 18px; }
.qr-box { text-align: center; background: white; padding: 16px; border-radius: 8px; box-shadow: var(--shadow-md); color: var(--text-dark); }
.qr-image { width: 140px; height: 140px; object-fit: contain; display: block; margin-bottom: 0; }
.footer-bottom { text-align: center; color: var(--text-light); font-size: 14px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 2000; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal-content { background: white; padding: 40px; border-radius: 16px; text-align: center; max-width: 400px; width: 90%; position: relative; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.open .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: var(--text-gray); }
.modal-qr-img { width: 200px; height: 200px; object-fit: contain; margin-bottom: 20px; }
