/* === V9 (活泼插画) 基本样式与变量 === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    /* V9 色彩方案 - 活泼明快，紫色 + 橙色/绿色 */
    --primary-color-v9: #a855f7; /* Purple 500 */
    --primary-light-v9: #d8b4fe; /* Purple 300 */
    --primary-dark-v9: #7e22ce; /* Purple 700 */
    --secondary-color-v9: #fb923c; /* Orange 400 - 辅助色 */
    --accent-color-v9: #84cc16; /* Lime 500 - 点缀色 */

    --bg-main-v9: #ffffff;
    --bg-alt-v9: #f3e8ff; /* Purple 50 - 非常浅的紫 */
    --bg-medium-v9: #faf5ff; /* Purple 100 */

    --text-dark-v9: #1e1b4b; /* Indigo 950 - 深色文字 */
    --text-medium-v9: #4c1d95; /* Violet 900 - 中等文字 */
    --text-light-v9: #6d28d9; /* Violet 700 - 浅色文字 */
    --text-on-primary-v9: #ffffff;

    --border-color-v9: #e9d5ff; /* Purple 200 */

    --footer-bg-v9: var(--primary-dark-v9); /* 页脚深紫 */
    --footer-text-v9: #e9d5ff; /* Purple 200 */
    --footer-link-hover-v9: var(--secondary-color-v9);

    /* V9 字体 */
    --font-primary-v9: 'Poppins', 'Noto Sans SC', sans-serif;
    --font-secondary-v9: 'Poppins', 'Noto Sans SC', sans-serif;

    /* V9 阴影 (柔和圆润) */
    --shadow-sm-v9: 0 4px 10px rgba(168, 85, 247, 0.08);
    --shadow-md-v9: 0 8px 16px rgba(168, 85, 247, 0.1);
    --shadow-lg-v9: 0 12px 28px rgba(168, 85, 247, 0.15);

    /* V9 圆角 (更圆润) */
    --border-radius-base-v9: 8px;
    --border-radius-lg-v9: 16px;
    --border-radius-xl-v9: 24px;

    --transition-v9: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === V9 重置与全局设置 === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-v9 {
    font-family: var(--font-primary-v9);
    line-height: 1.7;
    color: var(--text-medium-v9);
    background-color: var(--bg-main-v9);
    opacity: 1;
    transition: none;
    overflow-x: hidden; /* 防止插画等元素溢出 */
}

body.theme-v9.loaded {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5.5rem 0;
    position: relative;
    overflow: visible; /* 允许插画等溢出 */
}

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

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

a:hover {
    color: var(--primary-dark-v9);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary-v9);
    color: var(--text-dark-v9);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light-v9);
    max-width: 600px;
    margin: 0 auto;
}

/* === V9 按钮样式 (圆润活泼) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.1rem;
    border-radius: 50px; /* 很圆的按钮 */
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-v9);
    cursor: pointer;
    border: none;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm-v9);
}

.btn i {
    margin-left: 0.6rem;
    font-size: 0.9rem;
}

/* V9 主按钮 - 紫色 */
.btn-primary {
    background-color: var(--primary-color-v9);
    color: var(--text-on-primary-v9);
}

.btn-primary:hover {
    background-color: var(--primary-dark-v9);
    box-shadow: var(--shadow-md-v9);
    transform: translateY(-2px) scale(1.02);
}

/* V9 次按钮 - 橙色 */
.btn-secondary {
    background-color: var(--secondary-color-v9);
    color: var(--white-v9);
}

.btn-secondary:hover {
    background-color: #f97316; /* Orange 500 */
    box-shadow: var(--shadow-md-v9);
    transform: translateY(-2px) scale(1.02);
}

/* V9 描边按钮 (较少用) */
.btn-outline {
    background: transparent;
    color: var(--primary-color-v9);
    border: 2px solid var(--primary-color-v9);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color-v9);
    color: var(--text-on-primary-v9);
    box-shadow: var(--shadow-sm-v9);
}

/* === V9 导航栏 (圆润多彩) === */
.header-v9 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition-v9);
    box-shadow: none;
    border-bottom: 1px solid transparent; /* 滚动时出现 */
}

.header-v9.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm-v9);
    border-bottom-color: var(--border-color-v9);
}

.header-v9 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-v9 .logo {
    display: flex;
    align-items: center;
}

.header-v9 .logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark-v9);
    margin-left: 0.6rem;
}

.header-v9 .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color-v9), var(--secondary-color-v9));
    border-radius: 50%; /* 圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: none;
}

.header-v9 .nav-links {
    display: flex;
    gap: 1.8rem;
}

.header-v9 .nav-links a {
    color: var(--text-medium-v9);
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 20px; /* 圆角 */
}

.header-v9 .nav-links a i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.header-v9 .nav-links a:hover,
.header-v9 .nav-links a.active {
    color: var(--primary-dark-v9);
    background-color: var(--bg-alt-v9);
}

/* V9 Nav Link Hover - 无下划线 */
.header-v9 .nav-links a::after { display: none; }

.header-v9 .mobile-menu {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-color-v9);
}

/* === V9 英雄区域 (图文并茂) === */
.hero-v9 {
    padding: 7rem 0 6rem;
    background: linear-gradient(160deg, var(--bg-alt-v9) 0%, var(--bg-medium-v9) 100%);
    text-align: left; /* 左对齐 */
    position: relative;
    overflow: hidden;
}

.hero-v9 .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-v9 .hero-text {
    max-width: 550px;
    padding-left: 1rem; /* 在宽屏下也添加左内边距 */
}

.hero-v9 .hero-text h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark-v9);
}

.hero-v9 .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-light-v9);
}

.hero-v9 .hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-v9 .hero-illustration {
    max-width: 450px;
    flex-shrink: 0;
    /* 动画效果 */
    animation: float-illustration 6s ease-in-out infinite;
}

@keyframes float-illustration {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* === V9 关于我们 (带小插画) === */
.about-v9 {
    background-color: var(--bg-main-v9);
}

.about-v9 .about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-v9 .about-illustration {
    text-align: center;
}
.about-v9 .about-illustration img {
    max-width: 100%;
    border-radius: var(--border-radius-xl-v9);
    box-shadow: var(--shadow-lg-v9);
}

.about-v9 .about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark-v9);
    font-weight: 700;
}

.about-v9 .about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-medium-v9);
}

.about-v9 .about-highlights {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.about-v9 .highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--bg-alt-v9);
    padding: 0.6rem 1rem;
    border-radius: 50px;
}

.about-v9 .highlight-item i {
    color: var(--accent-color-v9);
    font-size: 1rem;
}

.about-v9 .highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium-v9);
}

/* === V9 作品集 (圆角卡片) === */
.portfolio-v9 {
    background-color: var(--bg-alt-v9);
}

.portfolio-v9 .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-v9 .portfolio-card {
    background: var(--white-v9);
    border-radius: var(--border-radius-xl-v9); /* 大圆角 */
    overflow: hidden;
    box-shadow: var(--shadow-md-v9);
    transition: var(--transition-v9);
    text-align: center;
    position: relative;
}

.portfolio-v9 .portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg-v9);
}

.portfolio-v9 .portfolio-image {
    height: auto; /* 自适应高度 */
    overflow: hidden;
    position: relative;
}

.portfolio-v9 .portfolio-image img {
    transition: transform 0.4s ease;
}
.portfolio-v9 .portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-v9 .portfolio-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(168, 85, 247, 0.7); /* 主色半透明 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-v9 .portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-v9 .portfolio-overlay a {
    color: white;
    font-size: 1.8rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.portfolio-v9 .portfolio-card:hover .portfolio-overlay a {
    transform: scale(1);
}

.portfolio-v9 .portfolio-card h3 {
    font-size: 1.05rem;
    padding: 1rem 1rem 1.2rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-medium-v9);
}

/* === V9 服务项目 (多彩图标背景) === */
.services-v9 {
    background-color: var(--bg-main-v9);
}

.services-v9 .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.services-v9 .service-card {
    background: var(--bg-alt-v9);
    border-radius: var(--border-radius-lg-v9);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: none;
    transition: var(--transition-v9);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services-v9 .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md-v9);
    background-color: var(--white-v9);
}

.services-v9 .service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-v9);
}
/* 为每个卡片设置不同背景色 */
.services-v9 .service-card:nth-child(4n+1) .service-icon-wrapper {
    background-color: var(--primary-light-v9);
    color: var(--primary-dark-v9);
}
.services-v9 .service-card:nth-child(4n+2) .service-icon-wrapper {
    background-color: #fed7aa; /* Orange 200 */
    color: #c2410c; /* Orange 700 */
}
.services-v9 .service-card:nth-child(4n+3) .service-icon-wrapper {
    background-color: #bef264; /* Lime 300 */
    color: #4d7c0f; /* Lime 700 */
}
.services-v9 .service-card:nth-child(4n+4) .service-icon-wrapper {
    background-color: #a5f3fc; /* Cyan 200 */
    color: #155e75; /* Cyan 800 */
}

.services-v9 .service-icon-wrapper i {
    font-size: 1.8rem;
}

.services-v9 .service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(-10deg);
}

.services-v9 .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark-v9);
}

.services-v9 .service-card p {
    color: var(--text-medium-v9);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === V9 博客 (带图卡片) === */
.blog-v9 {
    background-color: var(--bg-alt-v9);
}

.blog-v9 .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-v9 .blog-card {
    background-color: var(--white-v9);
    border-radius: var(--border-radius-lg-v9);
    overflow: hidden;
    box-shadow: var(--shadow-sm-v9);
    transition: var(--transition-v9);
    border: none;
    display: flex;
    flex-direction: column;
}

.blog-v9 .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md-v9);
}

.blog-v9 .blog-image-link {
    display: block;
    height: 200px;
    overflow: hidden;
}
.blog-v9 .blog-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-v9 .blog-card:hover .blog-image-link img {
    transform: scale(1.05);
}

.blog-v9 .blog-content {
    padding: 1.3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-v9 .blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-light-v9);
}

.blog-v9 .blog-author,
.blog-v9 .blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.blog-v9 .blog-author i,
.blog-v9 .blog-date i {
    font-size: 0.9rem;
}

.blog-v9 .blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
}

.blog-v9 .blog-title a {
    color: var(--text-dark-v9);
}

.blog-v9 .blog-title a:hover {
    color: var(--primary-color-v9);
}

/* 移除摘要 */
.blog-v9 .blog-excerpt { display: none; }

/* === V9 联系我们 (带插画) === */
.contact-v9 {
    background-color: var(--bg-main-v9);
    padding: 6rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.contact-v9 .container {
    position: relative;
    z-index: 1;
}

.contact-v9 .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--bg-medium-v9);
    padding: 3rem;
    border-radius: var(--border-radius-xl-v9);
    box-shadow: var(--shadow-lg-v9);
    position: relative;
    z-index: 2;
}

.contact-v9 .contact-illustration {
    position: absolute;
    bottom: -40px;
    right: -30px;
    max-width: 280px;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.contact-v9 .contact-text h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.contact-v9 .contact-text p {
    color: var(--text-light-v9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-v9 .email-link {
    color: var(--primary-color-v9);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-v9 .email-link i {
    font-size: 1.1rem;
}
.contact-v9 .email-link:hover {
    color: var(--primary-dark-v9);
}

.contact-v9 .contact-form {}

.contact-v9 .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-v9 .form-row input {
    flex: 1;
}

.contact-v9 input,
.contact-v9 textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-color-v9);
    border-radius: var(--border-radius-base-v9);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-v9);
    background-color: var(--white-v9);
    color: var(--text-medium-v9);
    margin-bottom: 1rem;
}

.contact-v9 input::placeholder,
.contact-v9 textarea::placeholder {
    color: #a78bfa;
    opacity: 0.8;
}

.contact-v9 input:focus,
.contact-v9 textarea:focus {
    outline: none;
    border-color: var(--primary-color-v9);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.contact-v9 textarea {
    height: 110px;
    resize: vertical;
}

.contact-v9 .contact-form button {
    width: 100%;
}

.contact-v9 .form-alert-placeholder {}

/* === V9 友情链接 (Logo 轮播) === */
.friend-links-v9 {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-alt-v9) 0%, var(--bg-main-v9) 100%);
    position: relative;
}

/* Optional: Wave separator example (requires an SVG) */
/* .friend-links-v9::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('images/wave-separator.svg') repeat-x center top;
    background-size: cover;
    opacity: 0.6;
} */

.friend-links-v9 .section-header h2 {
    color: var(--secondary-color-v9);
}
.friend-links-v9 .section-header p {
    color: var(--text-light-v9);
}

/* Owl Carousel Base Styles Patch (Ensure these are loaded if not globally available) */
.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
}
.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
.owl-carousel .owl-item img {
    display: block;
    width: 100%;
}
.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
    display: none;
}

/* V9 Owl Carousel Navigation Styles */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color-v9) !important;
    color: white !important;
    border: none !important;
    padding: 0 !important; /* Reset padding */
    font-size: 1.5rem !important;
    border-radius: 50% !important;
    width: 45px;           /* Fixed width */
    height: 45px;          /* Fixed height */
    line-height: 45px;     /* Center icon vertically */
    text-align: center;    /* Center icon horizontally */
    transition: var(--transition-v9) !important;
    box-shadow: var(--shadow-md-v9);
    opacity: 0.8;
    display: flex; /* Use flexbox for centering */
    align-items: center;
    justify-content: center;
}
.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary-dark-v9) !important;
    opacity: 1;
}
.owl-carousel .owl-nav button.owl-prev {
    left: 10px; /* 向内移动 */
}
.owl-carousel .owl-nav button.owl-next {
    right: 10px; /* 向内移动 */
}

/* V9 Owl Carousel Dots Styles */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 2rem;
}
.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    zoom: 1;
    margin: 0 5px;
}
.owl-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: var(--primary-light-v9);
    display: block;
    -webkit-backface-visibility: visible;
    transition: opacity 200ms ease;
    border-radius: 30px;
}
.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
    background: var(--primary-color-v9);
}


.links-carousel {
    margin-top: 1rem; /* Add some space if needed */
}

.link-item {
    text-align: center;
    padding: 1rem;
}

.link-item a {
    display: inline-block;
    transition: var(--transition-v9);
}

.link-item img {
    max-width: 130px; /* Limit logo size */
    height: 70px; /* Fixed height */
    object-fit: contain; /* Maintain aspect ratio */
    border-radius: var(--border-radius-base-v9);
    margin: 0 auto 0.8rem auto;
    background-color: white; /* Background for transparent logos */
    padding: 5px;
    border: 1px solid var(--border-color-v9);
    filter: grayscale(50%);
    opacity: 0.8;
    transition: var(--transition-v9);
}

.link-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light-v9);
    font-weight: 500;
    transition: var(--transition-v9);
}

.link-item a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md-v9);
    border-color: var(--primary-light-v9);
}

.link-item a:hover span {
    color: var(--primary-color-v9);
}

/* === V9 页脚 === */
.footer-v9 {
    background-color: var(--footer-bg-v9);
    color: var(--footer-text-v9);
    --footer-heading-v9: #ffffff; /* Define heading color for footer */
    --footer-icon-v9: var(--primary-light-v9); /* Define icon color for footer */
    --footer-bottom-bg-v9: #3b0764; /* Darker shade for bottom */
    --footer-bottom-text-v9: #d8b4fe; /* Lighter text for bottom */
}

.footer-top-v9 {
    padding: 5rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    color: var(--footer-heading-v9);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
/* Footer heading underline */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color-v9);
    border-radius: 2px;
}

.footer-about .footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-v9 .social-icons {
    display: flex;
    gap: 0.8rem;
}

.footer-v9 .social-icons a {
    color: var(--footer-icon-v9);
    background-color: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition-v9);
}

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

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--footer-text-v9);
    font-size: 0.9rem;
    transition: var(--transition-v9);
    position: relative;
    padding-left: 15px;
}

/* Decorational dot before links */
.footer-links a::before {
    content: '\f105'; /* Font Awesome angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-color-v9);
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-v9);
}

.footer-links a:hover {
    color: var(--footer-link-hover-v9);
    padding-left: 18px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    position: relative;
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px 0 0 50px; /* Rounder input */
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text-v9);
    font-size: 0.9rem;
}
.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.newsletter-form input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary-light-v9);
}

.newsletter-form button {
    background-color: var(--primary-color-v9);
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 50px 50px 0; /* Rounder button */
    cursor: pointer;
    transition: var(--transition-v9);
}
.newsletter-form button:hover {
    background-color: var(--primary-dark-v9);
}

.footer-bottom-v9 {
    background-color: var(--footer-bottom-bg-v9);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-v9 p {
    font-size: 0.85rem;
    color: var(--footer-bottom-text-v9);
    margin: 0;
}

.footer-bottom-v9 a {
    color: var(--primary-light-v9);
    font-weight: 500;
}
.footer-bottom-v9 a:hover {
    color: white;
    text-decoration: underline;
}


/* === V9 回到顶部按钮 === */
.scroll-top-btn {
    position: fixed;
    bottom: 1.8rem;
    right: 1.8rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color-v9);
    color: white;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bounce effect */
    box-shadow: var(--shadow-lg-v9);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: var(--primary-dark-v9);
    transform: translateY(-3px) scale(1.05);
}

/* === V9 响应式调整 === */
@media (max-width: 992px) {
    .header-v9 .nav-links { display: none; }
    .header-v9 .mobile-menu { display: block; }
    .hero-v9 {
        padding: 8rem 0 5rem; /* Adjusted padding */
        text-align: center;
    }
    .hero-v9 .hero-content {
        flex-direction: column; /* Stack elements vertically */
        gap: 2.5rem;
    }
    .hero-v9 .hero-text {
        margin-bottom: 0; /* Remove bottom margin */
        order: 2; /* Text below illustration */
        padding: 0 1rem; /* 为文本添加水平内边距 */
    }
    .hero-v9 .hero-illustration {
        max-width: 380px; /* Slightly smaller illustration */
        margin: 0 auto;
        order: 1; /* Illustration above text */
    }
    .about-v9 .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .about-v9 .about-illustration {
        order: -1; /* Image on top */
        max-width: 400px;
        margin: 0 auto;
    }
    .about-v9 .about-highlights {
        justify-content: center;
    }
    .service-card {
        text-align: center;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .contact-v9 .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.5rem;
    }
    .contact-v9 .contact-illustration {
        display: none; /* Hide illustration on medium screens */
    }
    .contact-v9 .contact-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .owl-carousel .owl-nav button.owl-prev {
        left: 5px; /* 中屏幕也向内移动 */
    }
    .owl-carousel .owl-nav button.owl-next {
        right: 5px; /* 中屏幕也向内移动 */
    }
}

@media (max-width: 768px) {
    /* Mobile Nav Styles - V9 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--bg-main-v9);
        padding: 6rem 0 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.35s ease-in-out;
        z-index: 1001;
        gap: 0;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color-v9);
    }
    .nav-links li:last-child {
        border-bottom: none;
        margin-top: auto; /* Push contact button to bottom */
        padding: 1rem 1.5rem;
    }
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        color: var(--text-dark-v9);
        font-weight: 500;
        transition: var(--transition-v9);
    }
    .nav-links a i {
        margin-right: 0.8rem;
        color: var(--primary-color-v9);
        width: 20px;
        text-align: center;
    }
    .nav-links a.active,
    .nav-links a:hover {
        color: var(--primary-color-v9);
        background-color: var(--bg-alt-v9);
        padding-left: 2rem;
    }
    .nav-links .btn-contact-nav { /* Style for potential button in nav */
        display: block;
        width: calc(100% - 3rem);
        text-align: center;
        margin: 1rem 1.5rem 0;
    }
    .overlay {
        background: rgba(126, 34, 206, 0.3); /* Use primary color with alpha */
        backdrop-filter: blur(3px);
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
    }
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-v9 .hero-text h1 {
        font-size: 2.6rem; /* Slightly smaller H1 */
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .footer-grid {
        grid-index: 1fr; /* Single column */
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-v9 .social-icons {
        justify-content: center;
    }
    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }
    .owl-carousel .owl-nav {
        display: none; /* Hide arrows on small mobile */
    }
    .footer-top-v9 {
        padding: 4rem 0 3rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 0;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-v9 {
        padding: 7rem 0 4rem; /* Adjusted padding */
    }
    .hero-v9 .hero-text h1 {
        font-size: 2.3rem;
    }
    .hero-v9 .hero-text p {
        font-size: 1rem;
    }
    .hero-v9 .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .hero-v9 .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    .portfolio-filter button { /* Example filter styles */
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        margin: 0 0.2rem 0.5rem;
    }
    .contact-v9 .contact-content {
        padding: 2rem 1.5rem; /* Adjust padding */
    }
    .contact-v9 .contact-form textarea {
        min-height: 100px;
    }
    .owl-carousel .owl-nav {
        display: none; /* Hide arrows on small mobile */
    }
    .footer-top-v9 {
        padding: 4rem 0 3rem;
    }
}

/* === V9 预加载器 (可选) === */
/* .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main-v9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light-v9);
    border-top-color: var(--primary-color-v9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
} */ 