* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

/* Design tokens from Figma */
:root {
    --color-n900: #101840;
    --color-n0: #FFFFFF;
    --color-n700: #696F8C;
    --color-n800: #474D66;
    --color-n300: #E6E8F0;
    --color-n100: #F4F6FA;
    --color-heading: #3E4265;
    --color-violet-400: #897AE3;

    --font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --display-04-size: 56px;
    --display-05-size: 48px;
    --headline-h2-size: 32px;
    --paragraph-size: 16px;
    --semibold: 590;
    --bold: 700;
}

/* Header Section */
.header {
    position: relative;
    height: 1000px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ebf3 100%);
    background-image: url('images/hero-bg-new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 375px;
    z-index: 10;
}

.logo {
    font-family: 'Arial Rounded MT Bold', sans-serif;
    font-size: 32px;
    font-weight: normal;
    color: var(--color-n900);
}

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

.nav-links a {
    color: var(--color-n700);
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--semibold);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-n900);
}

.hero-content {
    position: absolute;
    left: 375px;
    top: 361px;
    z-index: 5;
}

.hero-title {
    font-size: 70px;
    font-weight: var(--bold);
    color: var(--color-n900);
    line-height: 1;
    margin-bottom: 40px;
    max-width: 670px;
}

.hero-buttons {
    display: flex;
    gap: 19px;
    flex-wrap: wrap;
}

.btn {
    background: var(--color-n900);
    color: var(--color-n0);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 24px;
    font-weight: var(--semibold);
    line-height: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background: #2a3a60;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    position: relative;
    padding: 112px 0;
    background: var(--color-n100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 570px);
    gap: 30px;
    justify-content: center;
    padding: 0 375px;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
}

.service-card.dark {
    background: #0a0117;
}

.service-card img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card.dark img {
    opacity: 0.8;
}

.service-content {
    grid-area: 1 / 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 2;
}

.service-title {
    font-size: 40px;
    font-weight: var(--semibold);
    color: var(--color-n0);
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Testimonials Section */
.testimonials {
    position: relative;
    /* 固定高度导致移动端内容被裁切，改为自适应 */
    height: auto;
    padding: 130px 0;
    background: #ffffff;
}

.testimonials-title {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-title h2 {
    font-size: var(--display-04-size);
    font-weight: var(--bold);
    color: var(--color-n900);
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 1014px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 0 375px;
}

.testimonial-card {
    position: relative;
    width: 370px;
    height: 566px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 333px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 36.538%, transparent);
    display: flex;
    align-items: flex-end;
    padding: 41px;
}

.testimonial-text {
    color: var(--color-n0);
    font-size: 18px;
    font-weight: var(--semibold);
    line-height: 1.5;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

/* About Section */
.about {
    position: relative;
    background: var(--color-n0);
    padding: 120px 0;
}

.about-header {
    max-width: 1170px;
    margin: 0 auto 48px;
    padding: 0 24px;
    text-align: center;
}

.about-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-text { position: static; }

.about-subtitle {
    font-size: 36px;
    font-weight: 400;
    color: var(--color-n900);
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.about-title {
    font-size: var(--display-05-size);
    font-weight: var(--bold);
    color: var(--color-n900);
    line-height: 1.2;
    margin-bottom: 40px;
}

.about-description h3 {
    font-size: var(--headline-h2-size);
    font-weight: var(--semibold);
    color: var(--color-n900);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-description p {
    font-size: var(--paragraph-size);
    font-weight: 400;
    color: var(--color-n800);
    line-height: 1.5;
    margin-bottom: 40px;
}

.btn-about {
    font-size: 16px;
    padding: 12px 24px;
    display: inline-block;
    margin-top: 12px;
}

.about-image {
    position: static;
    width: 100%;
    max-width: 693px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 90px;
}

/* CTA Section */
.cta {
    position: relative;
    min-height: 600px;
    background-image: url('images/cta-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    position: static;
    max-width: 946px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--display-04-size);
    font-weight: var(--bold);
    color: var(--color-n900);
    line-height: 1.2;
}

/* Contact Section */
.contact {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    background: #ffffff;
}

.contact-container {
    padding: 0 24px;
}

.contact-title {
    font-size: 56px;
    font-weight: var(--bold);
    color: var(--color-n900);
    text-align: center;
    margin-top: 100px;
    margin-bottom: 24px;
}

.contact-subtitle {
    font-size: 40px;
    font-weight: 400;
    color: var(--color-n900);
    text-align: center;
    line-height: 1.2;
    max-width: 1061px;
    margin: 0 auto 40px;
}

.contact-form {
    position: static;
    display: grid;
    grid-template-columns: 300px 560px; /* 左列标签，右列输入框固定宽度，更紧凑 */
    row-gap: 32px;
    column-gap: 24px;
    align-items: center;
    justify-content: center; /* 居中整个两列网格 */
}

.form-group {
    position: static;
    height: auto;
    margin: 0;
    display: contents; /* 让 label 和控件占据两列 */
}

.form-group label {
    position: static;
    font-size: 40px;
    font-weight: 400;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右对齐 */
    text-align: right;
    padding-right: 16px; /* 与输入框的间距 */
    white-space: nowrap;
}

.form-group input,
.form-group select {
    position: static;
    width: 100%;
    height: 48px;
    border: 1px solid #a1a1a1;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
    background: var(--color-n0);
}

.form-group select { cursor: pointer; }

.btn-submit {
    position: static;
    grid-column: 1 / -1; /* 跨两列，居中 */
    justify-self: center;
    font-size: 40px;
    padding: 12px 32px;
    height: 54px;
    width: 164px;
    margin-top: 24px;
}

/* 响应式：在较窄屏幕回退为单列并让输入宽度自适应 */
@media (max-width: 900px) {
  .contact-form {
    grid-template-columns: 1fr;     /* 单列 */
    justify-content: stretch;
  }
  .form-group { display: block; margin-bottom: 16px; }
  .form-group label {
    justify-content: flex-start;     /* 标签左对齐 */
    text-align: left;
    padding-right: 0;
    margin-bottom: 8px;
  }
  .form-group input, .form-group select { width: 100%; }
  .btn-submit { grid-column: auto; width: auto; }
}

/* Footer */
.footer {
    position: relative;
    background: var(--color-n0);
    width: 100%;
}

.footer-hr { /* unified by final definition below */ }

.footer-content {
    position: relative;
    left: auto;
    top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand { position: relative; }

/* 不显示顶部 PickyAI 文案，设计中直接以“社媒账号”为列标题 */
.footer-logo { display: none; }

.social-section h3 {
    position: static;
    font-size: 18px;
    font-weight: 590;
    color: var(--color-n900);
    margin-bottom: 12px;
}

.social-links { position: static; }

.social-item {
    display: grid;
    grid-template-columns: 20px auto;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 20px;
}

.social-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-item span {
    font-size: 16px;
    font-weight: 590;
    color: #8f95b2;
    line-height: 1.3;
    white-space: nowrap; /* 网页版不换行 */
}

.wechat-section h3 {
    position: static;
    font-size: 18px;
    font-weight: 590;
    color: var(--color-n900);
    margin-bottom: 12px;
}

.wechat-qr { position: static; }

.wechat-qr img {
    width: 113px;
    height: 113px;
    object-fit: contain;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: var(--semibold);
    color: var(--color-heading);
    margin-bottom: 30px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-section ul li a {
    color: var(--color-violet-400);
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--semibold);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6b5db8;
}

.footer-hr { /* unified by final definition below */ }

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Animations */
.hero-title {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.service-card {
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.3s ease;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 24, 64, 0.1);
}

.testimonial-card {
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.3s ease;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-content {
    animation: fadeInUp 1s ease-out both;
}

.cta-content {
    animation: fadeInUp 1s ease-out both;
}

.contact-container {
    animation: fadeInUp 1s ease-out both;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Navigation Enhancements */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-n900);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Enhanced Service Cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(137, 122, 227, 0.1), rgba(16, 24, 64, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.service-card:hover::before {
    opacity: 1;
}

/* Form Enhancements */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #897ae3;
    box-shadow: 0 0 0 2px rgba(137, 122, 227, 0.2);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .nav, .hero-content, .services-grid, .testimonials-grid, .footer {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-content {
        left: 40px;
    }
    
    .about-content {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 570px;
        margin: 0 auto;
    }
    
    .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-group label {
        text-align: left;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    /* Smaller heading on mobile with safe padding */
    .testimonials-title h2 { font-size: 28px; padding: 0 16px; }
    .header {
        height: 800px;
    }
    
    .nav {
        padding: 0 20px;
        flex-direction: column;
        height: 120px;
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        left: 20px;
        top: 200px;
        max-width: calc(100% - 40px);
    }
    
    .hero-title {
        font-size: 48px;
        max-width: 100%;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn {
        font-size: 18px;
        padding: 8px 12px;
    }
    
    .services-grid {
        padding: 0 20px;
        max-width: calc(100% - 40px);
    }
    
    .testimonials-grid { padding: 0 20px; }
    .testimonial-card { width: 100%; max-width: none; border-radius: 16px; }
    .testimonial-overlay { height: auto; min-height: 200px; padding: 24px; }
    
    .about-content {
        padding: 0 20px;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-subtitle {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 40px;
    }
    
    .contact-title {
        font-size: 40px;
    }
    
    .contact-subtitle {
        font-size: 28px;
    }
    
    .form-group label {
        font-size: 28px;
    }
    
    .btn-submit {
        font-size: 28px;
    }
    
    .footer {
        padding: 60px 20px 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile overflow fixes: ensure no horizontal scroll on small screens */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Navigation/container hardening */
  .nav { padding: 0 16px !important; width: 100% !important; left: 0 !important; transform: none !important; }
  .hero-content { left: 16px !important; right: 16px !important; width: auto !important; }

  /* Section grids */
  .services-grid, .testimonials-grid, .footer-content { padding-left: 16px !important; padding-right: 16px !important; margin-left: auto !important; margin-right: auto !important; max-width: 100% !important; }

  /* Footer full width */
  .footer { width: 100% !important; left: 0 !important; }
  .footer-hr { position: static !important; width: 100% !important; max-width: 100% !important; margin-top: 24px !important; }

  /* Generic images should never overflow */
  img { max-width: 100%; height: auto; }

  /* Footer column and readability improvements on mobile */
  .footer-content { grid-template-columns: 1fr !important; row-gap: 24px !important; }
  .footer-section h3, .footer-wechat h3, .social-section h3 { font-size: 16px !important; margin-bottom: 12px !important; }
  .wechat-qr-list img { width: 140px !important; height: 140px !important; }
  .social-item span { word-break: break-all; }
  .social-item span { white-space: normal; }
  .social-links .social-item { display: grid !important; grid-template-columns: 20px auto; column-gap: 10px; align-items: start; }
  .social-links .email-label { grid-column: 2 / 3; display: block; }
  .social-links .email-lines { grid-column: 2 / 3; display: block; }
}

/* Stronger mobile layout rules for contact form (phones) */
@media (max-width: 600px) {
  .contact-title { font-size: 32px; margin-top: 48px; }
  .contact-subtitle { font-size: 18px; margin-bottom: 24px; }

  .contact-form { grid-template-columns: 1fr !important; column-gap: 0 !important; row-gap: 16px !important; padding: 0 !important; }
  .form-group { display: block !important; margin: 0 0 16px 0 !important; }
  .form-group label { font-size: 18px !important; padding-right: 0 !important; text-align: left !important; justify-content: flex-start !important; margin-bottom: 6px !important; }
  .form-group input,
  .form-group select { width: 100% !important; height: 44px !important; box-sizing: border-box; }
  .btn-submit { font-size: 18px !important; height: 44px !important; padding: 8px 20px !important; }
}

/* Layout fixes: make sections containerized and remove fragile absolute positioning */
/* About section: two-column responsive layout */
.about-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-text {
    position: static;
}

.about-image {
    position: static;
    width: 100%;
    max-width: 693px;
    height: auto;
    justify-self: start;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 90px;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .about-image { justify-self: center; }
}

/* Contact section: grid-based form alignment */
.contact {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    height: auto;
    left: auto;
    transform: none;
}

.contact-container { padding: 0 24px; }

.contact-form {
    position: static;
    margin-top: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    row-gap: 32px;
    column-gap: 24px;
    align-items: center;
}

.form-group {
    position: static !important;
    height: auto;
    margin: 0;
    display: contents; /* allow label + control occupy the two columns */
}

.form-group label {
    position: static !important;
    font-size: 40px;
    justify-self: stretch; /* occupy the whole first column */
    display: flex;         /* robust right alignment */
    align-items: center;
    justify-content: flex-end;
    text-align: right;     /* flush to right edge */
    padding-right: 16px;   /* gap between label and field */
    white-space: nowrap;
}

.form-group input,
.form-group select {
    position: static !important;
    width: 100%;
}

.btn-submit {
    position: static !important;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 24px;
}

/* Footer: full-width background with centered content grid */
.footer {
    position: relative;
    width: 100%;
    left: 0;
    height: auto;            /* 覆盖旧的固定高度 */
    padding-bottom: 80px;    /* 给底部横线留空间 */
}

.footer-content {
    position: relative;      /* 让内容位于横线之上 */
    z-index: 1;
    max-width: 1170px;
    margin: 126px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr 1fr 1fr; /* 左二列：品牌 + 微信；右三列：公司/产品/支持 */
    gap: 60px;
}

.footer-hr {
    position: absolute;      /* 固定在页脚底部，不遮挡内容 */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 100%;
    max-width: 1170px;
    background: var(--color-n300);
    margin: 0;
    pointer-events: none;    /* 不拦截点击 */
    z-index: 0;
}

/* 微信单独一列的样式 */
.footer-wechat h3 { font-size: 18px; font-weight: 590; color: var(--color-n900); margin-bottom: 12px; }
.wechat-qr-list { display: flex; gap: 16px; align-items: center; }
.wechat-qr-list img { width: 113px; height: 113px; object-fit: contain; }