/*
Theme Name: 梧桐签名
Theme URI: https://www.wtqianming.com/
Author: 梧桐签名团队
Author URI: https://www.wtqianming.com/
Description: 梧桐签名 - 专业iOS签名分发服务网站主题，提供稳定、高效的iOS签名分发服务，包含企业签名、超级签名、TF签名、MDM签名等。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wutong-sign
Tags: one-page, business, chinese, ios-signing, responsive
*/

/* =============================================
   基础重置与全局样式
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    line-height: 1.7;
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

/* =============================================
   导航栏
   ============================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
}

.site-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-logo .logo-text {
    color: #333333;
}

/* 导航菜单 */
#site-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

#site-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#site-nav ul li a {
    display: block;
    padding: 8px 20px;
    font-size: 15px;
    color: #555555;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

#site-nav ul li a:hover,
#site-nav ul li.current-menu-item a,
#site-nav ul li a.active {
    color: #52c41a;
    background: rgba(82, 196, 26, 0.08);
}

/* 联系我们按钮（导航右侧红色按钮） */
.nav-contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ff4444;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.nav-contact-btn:hover {
    background: #e63333 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4) !important;
    color: #ffffff !important;
}

.nav-contact-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* =============================================
   Hero 区域（首屏）
   ============================================= */
#hero {
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9ff 50%, #f5fff0 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(82, 196, 26, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(24, 144, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #52c41a;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.35);
}

.hero-btn:hover {
    background: #3da312;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(82, 196, 26, 0.45);
    color: #ffffff;
}

.hero-image {
    flex: 1;
    max-width: 520px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

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

/* =============================================
   服务区域
   ============================================= */
#services {
    background: #ffffff;
    padding: 90px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 50px;
}

.section-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #52c41a;
    border-radius: 2px;
    margin-top: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #888888;
    margin-top: 8px;
}

.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #52c41a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.3);
    white-space: nowrap;
}

.section-btn:hover {
    background: #3da312;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.4);
    color: #ffffff;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #52c41a, #1890ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: #777777;
    line-height: 1.8;
}

/* 更多服务卡片（第5个，跨列） */
.service-card.more-services {
    grid-column: span 1;
    background: linear-gradient(135deg, #f8fff5, #f0fff4);
    border-color: #d9f7be;
}

/* =============================================
   关于我们区域
   ============================================= */
#about {
    background: #0d1b5e;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(82, 196, 26, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    max-width: 480px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    animation: float 4s ease-in-out infinite;
}

.about-content {
    flex: 1;
}

.about-content .section-title {
    color: #ffffff;
    font-size: 36px;
}

.about-content .section-title::after {
    background: #52c41a;
}

.about-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin: 20px 0 35px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

.about-feature-item .check-icon {
    width: 24px;
    height: 24px;
    background: #52c41a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature-item .check-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

/* =============================================
   服务优势区域
   ============================================= */
#advantages {
    background: #ffffff;
    padding: 90px 0;
}

.advantages-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.advantages-image {
    flex: 1;
    max-width: 450px;
}

.advantages-image img {
    width: 100%;
    animation: float 3.5s ease-in-out infinite;
}

.advantages-content {
    flex: 1;
}

.advantages-content .section-title {
    margin-bottom: 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.advantage-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: #f0fff4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 196, 26, 0.1);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.advantage-icon.icon-stable { background: #fff7e6; }
.advantage-icon.icon-team { background: #e6f7ff; }
.advantage-icon.icon-choice { background: #f6ffed; }
.advantage-icon.icon-support { background: #fff0f6; }

.advantage-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.advantage-text p {
    font-size: 13px;
    color: #888888;
    line-height: 1.7;
}

/* =============================================
   常见问题区域
   ============================================= */
#faq {
    background: #0d1b5e;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

#faq::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(24, 144, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.faq-inner {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.faq-content {
    flex: 1;
}

.faq-content .section-title {
    color: #ffffff;
    margin-bottom: 35px;
}

.faq-content .section-title::after {
    background: #52c41a;
}

.faq-image {
    flex: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
}

.faq-image img {
    width: 100%;
    border-radius: 16px;
    animation: float 4s ease-in-out infinite 1s;
}

/* FAQ 手风琴 */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(82, 196, 26, 0.4);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    color: #52c41a;
}

.faq-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1;
}

.faq-item.active .faq-toggle-icon {
    background: #52c41a;
    border-color: #52c41a;
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
    padding: 0 22px 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* =============================================
   页脚
   ============================================= */
#site-footer {
    background: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid #f0f0f0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-desc {
    font-size: 14px;
    color: #888888;
    line-height: 1.8;
}

.footer-contact {
    flex: 1;
}

.footer-contact h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #555555;
}

.footer-contact-item .contact-label {
    font-weight: 600;
    color: #333333;
}

.footer-contact-item a {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #52c41a;
}

.footer-bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #aaaaaa;
}

/* =============================================
   悬浮联系按钮
   ============================================= */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.float-contact-btn {
    width: 56px;
    height: 56px;
    background: #52c41a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(82, 196, 26, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.float-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(82, 196, 26, 0.5);
}

.float-contact-btn svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.float-contact-label {
    font-size: 11px;
    color: #52c41a;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* 返回顶部按钮 */
.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #52c41a;
    border-color: #52c41a;
    transform: translateY(-3px);
}

.scroll-top-btn:hover svg {
    fill: #ffffff;
}

.scroll-top-btn svg {
    width: 18px;
    height: 18px;
    fill: #666666;
    transition: fill 0.3s ease;
}

/* =============================================
   响应式设计
   ============================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner, .advantages-inner, .faq-inner { gap: 50px; }
}

@media (max-width: 768px) {
    #site-header .header-inner { padding: 0 20px; }

    .mobile-menu-toggle { display: flex; }

    #site-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    #site-nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #site-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    #site-nav ul li { width: 100%; }
    #site-nav ul li a { padding: 12px 20px; text-align: center; }

    .nav-contact-btn {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-content { max-width: 100%; }
    .hero-image { max-width: 300px; }

    .section-header-inner { flex-direction: column; align-items: flex-start; }

    .services-grid { grid-template-columns: 1fr; }

    .about-inner, .advantages-inner { flex-direction: column; }
    .about-image, .advantages-image { max-width: 100%; }

    .faq-inner { flex-direction: column; }
    .faq-image { max-width: 100%; }

    .advantages-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-brand { max-width: 100%; }

    .section-title { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .section-padding { padding: 60px 0; }
    #services, #about, #advantages, #faq { padding: 60px 0; }
}
