/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: var(--transition);
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* 首页英雄区 */
.hero {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-text {
    color: white;
}

.hero-title {
    margin-bottom: 1rem;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* 个人资料卡片 */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-hover);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.avatar-text {
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.profile-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.profile-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 统计数据 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 0.5rem;
}

.stat-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 简历部分 */
.resume {
    padding: 100px 0;
    background: var(--bg-light);
}

/* 独立页面样式 */
.resume-page {
    padding: 100px 0 50px;
    background: var(--bg-light);
    min-height: 100vh;
}

.manual-page {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 简历卡片 */
.resume-card {
    background: var(--bg-white);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.resume-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content {
    padding: 2rem;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    gap: 0.5rem;
}

.info-label {
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
}

.job-intention {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.intention-label {
    color: var(--text-light);
}

.intention-value {
    color: var(--primary-color);
    font-weight: 600;
}

/* 时间线 */
.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-header h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.timeline-role {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* 评价文本 */
.evaluation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* 技能网格 */
.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 经验列表 */
.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 证书列表 */
.certificate-list {
    list-style: none;
}

.certificate-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.certificate-list li:last-child {
    border-bottom: none;
}

.certificate-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 奖项 */
.award-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.award-name {
    flex: 1;
    font-weight: 500;
}

.award-level {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.award-year {
    color: var(--text-light);
}

/* 项目 */
.project-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.project-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 个人说明书部分 */
.manual {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.manual-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.manual-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.manual-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* 产品信息卡片 */
.product-info {
    grid-column: span 2;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6582 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    font-size: 2rem;
}

.product-title h3 {
    font-size: 1.5rem;
}

.product-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-icon {
    font-size: 1.2rem;
}

.detail-label {
    opacity: 0.8;
}

.detail-value {
    font-weight: 600;
}

.status-bar {
    margin-bottom: 2rem;
}

.status-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.status-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    width: 85%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.robot-avatar {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-face {
    text-align: center;
}

.robot-eyes {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.robot-mouth {
    font-size: 1.2rem;
}

/* 操作指南 */
.guide-content {
    display: grid;
    gap: 1.5rem;
}

.guide-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.guide-visual {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time {
    font-weight: 600;
    color: var(--accent-color);
}

.status {
    font-size: 0.8rem;
    color: var(--text-light);
}

.arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.guide-text {
    flex: 1;
    color: var(--text-dark);
}

.emoji-indicator {
    font-size: 1.5rem;
}

/* 通讯协议 */
.protocol-flow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.protocol-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.protocol-label {
    font-weight: 500;
    color: var(--text-dark);
}

.protocol-arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.protocol-result {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.protocol-or {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* 运行环境 */
.environment-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.env-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.env-label {
    width: 80px;
    font-weight: 500;
    color: var(--text-dark);
}

.env-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.env-fill {
    height: 100%;
    border-radius: 4px;
    transition: var(--transition);
}

.env-fill.active {
    background: linear-gradient(90deg, #00d26a, #00a854);
}

.env-fill.warning {
    background: linear-gradient(90deg, #ffa726, #ff9800);
}

.env-fill:not(.active):not(.warning) {
    background: linear-gradient(90deg, #90a4ae, #607d8b);
}

/* 核心功能 */
.functions-content {
    display: grid;
    gap: 1.5rem;
}

.function-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 雷达图 */
.radar-chart {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.radar-container {
    width: 150px;
    height: 150px;
    position: relative;
}

.radar-axis {
    position: absolute;
    width: 1px;
    height: 50%;
    background: var(--border-color);
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(var(--angle));
}

.radar-polygon {
    position: absolute;
    width: 60%;
    height: 60%;
    background: rgba(74, 144, 226, 0.3);
    border: 2px solid var(--primary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* 技能评分 */
.skill-ratings {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.rating-name {
    font-weight: 500;
    color: var(--text-dark);
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: var(--secondary-color);
}

/* 隐藏彩蛋 */
.easter-egg h4 {
    color: var(--accent-color);
}

/* 维护与警告 */
.maintenance-content {
    display: grid;
    gap: 1.5rem;
}

.maintenance-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.warning-list,
.abnormal-list {
    list-style: none;
}

.warning-item,
.abnormal-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
}

.warning-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.warning-text {
    color: var(--text-dark);
}

.abnormal-icon {
    font-size: 1.2rem;
}

.abnormal-text {
    color: var(--text-dark);
}

/* 充电选项 */
.charge-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.charge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    flex: 1;
}

.charge-icon {
    font-size: 1.5rem;
}

.charge-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.weekend-reboot {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 10px;
    font-weight: 600;
}

/* 推荐场景 */
.scenarios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.scenario-section {
    padding: 1.5rem;
    border-radius: 10px;
}

.scenario-section.recommended {
    background: rgba(0, 210, 106, 0.1);
    border: 2px solid #00d26a;
}

.scenario-section.not-recommended {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--accent-color);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scenario-header .scenario-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.scenario-section.recommended .scenario-icon {
    color: #00d26a;
}

.scenario-section.not-recommended .scenario-icon {
    color: var(--accent-color);
}

.scenario-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scenario-illustration {
    text-align: center;
    font-size: 2rem;
}

.scenario-list {
    list-style: none;
}

.scenario-list li {
    padding: 0.5rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-dark);
}

.scenario-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

/* 说明书底部 */
.manual-footer {
    grid-column: span 2;
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.manual-footer p {
    color: var(--text-light);
    font-style: italic;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.contact-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.beian-info {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.beian-info p {
    margin: 0.3rem 0;
}

.beian-info a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.beian-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .manual-container {
        grid-template-columns: 1fr;
    }

    .product-info,
    .manual-footer {
        grid-column: span 1;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .robot-avatar {
        display: none;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-card,
.manual-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .hamburger {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .resume-card,
    .manual-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
