/* ========================================
   墨迹集 - 品牌作品集网站
   主样式表
   ======================================== */

/* CSS变量 - 品牌色板 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f0f0ff;
    --bg-light: #f8f9ff;
    --white: #ffffff;
    --text-primary: #1e1b4b;
    --text-secondary: #4338ca;
    --text-body: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    --shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

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

.nav-links li a.nav-admin {
    background: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
}

.nav-links li a.nav-admin:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.05;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(5deg); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 200px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(15px); opacity: 0.3; }
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

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

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   通用区块标题
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   区块间距
   ======================================== */
section {
    padding: 100px 0;
}

/* ========================================
   服务区域
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.05);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   作品展示
   ======================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.work-image {
    height: 240px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.work-image .work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.work-image .work-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.work-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   统计区域
   ======================================== */
.stats {
    background: var(--gradient);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   团队区域
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
}

.team-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-card .team-role {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   客户评价
   ======================================== */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-text {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-company {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   CTA 区域
   ======================================== */
.cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

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

.footer-logo {
    width: 160px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact p i {
    width: 20px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ========================================
   页面横幅
   ======================================== */
.page-banner {
    background: var(--gradient);
    color: var(--white);
    padding: 140px 20px 80px;
    text-align: center;
}

.page-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 20px;
    opacity: 0.9;
}

/* ========================================
   关于页 - 品牌故事
   ======================================== */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    text-align: center;
}

.story-logo {
    width: 280px;
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ========================================
   使命愿景
   ======================================== */
.mission {
    background: var(--secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.mission-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--white);
}

.mission-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mission-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   发展历程 - 时间轴
   ======================================== */
.timeline-list {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding: 30px 0;
    display: flex;
    justify-content: flex-end;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 40px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: auto;
    right: -8px;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 380px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   联系页 - 联系方式
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--gradient);
    color: var(--white);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   联系表单
   ======================================== */
.contact-form-section {
    background: var(--secondary);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success i {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ========================================
   地图占位
   ======================================== */
.map-placeholder {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 100px 40px;
    text-align: center;
    color: var(--white);
}

.map-content i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.map-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.map-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   社交媒体链接
   ======================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 100px;
}

.social-link i {
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.social-link span {
    font-size: 13px;
    color: var(--text-muted);
}

.social-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    background: var(--gradient);
}

.social-link:hover i,
.social-link:hover span {
    color: var(--white);
}

/* ========================================
   后台管理样式
   ======================================== */
.admin-body {
    background: #f5f5f5;
}

/* 登录 */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-logo {
    width: 180px;
    margin-bottom: 30px;
}

.login-card h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.login-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.back-link:hover {
    color: var(--primary);
}

/* 后台面板 */
.admin-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-nav {
    background: var(--text-primary);
    color: var(--white);
    padding: 0 20px;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.admin-logo .logo-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user {
    font-size: 14px;
    opacity: 0.8;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 后台容器 */
.admin-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-sidebar {
    width: 240px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-menu li a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.admin-menu li a.active {
    background: var(--secondary);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    padding: 30px;
    overflow-x: hidden;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tab-header h2 {
    font-size: 24px;
    color: var(--text-primary);
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.admin-table td {
    color: var(--text-body);
}

.admin-table tr:hover td {
    background: var(--bg-light);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete,
.btn-toggle {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.btn-edit {
    background: #e0e7ff;
    color: var(--primary);
}

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

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

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

.btn-toggle {
    background: var(--secondary);
    color: var(--text-muted);
}

.btn-toggle.active {
    background: #d1fae5;
    color: #059669;
}

.btn-toggle:hover {
    opacity: 0.8;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 550px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-body p {
    font-size: 16px;
    color: var(--text-body);
}

.modal-footer {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

#modalForm {
    padding: 24px;
}

/* 配置表单 */
.config-form {
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.config-success {
    text-align: center;
    padding: 20px;
    color: #059669;
    font-weight: 600;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li a {
        padding: 12px 16px;
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid,
    .works-grid,
    .team-grid,
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .page-banner h1 {
        font-size: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        gap: 16px;
    }
    
    .social-link {
        min-width: 80px;
        padding: 16px;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-main {
        padding: 20px;
    }
    
    .timeline-list::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
    
    .timeline-content {
        max-width: 100%;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
}