/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    display: block;
}

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

/* Header */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
}

body.dark-mode header {
    background: rgba(18, 18, 18, 0.95);
}

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

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: #e94560;
    letter-spacing: 2px;
}

.logo span {
    color: #fff;
}

body.dark-mode .logo span {
    color: #e0e0e0;
}

nav ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #ccc;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: #e94560;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle, .dark-toggle {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.search-toggle:hover, .dark-toggle:hover {
    color: #e94560;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

body.dark-mode .mobile-menu-btn {
    color: #e0e0e0;
}

/* Search */
.search-bar {
    display: none;
    background: #fff;
    padding: 15px 20px;
    border-radius: 30px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.dark-mode .search-bar {
    background: #2a2a2a;
}

.search-bar.active {
    display: block;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background: #f1f1f1;
}

body.dark-mode .search-bar input {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

.search-bar button {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #d63851;
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233,69,96,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #e94560;
}

.hero-text p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
}

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

.btn-primary {
    background: #e94560;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #e94560;
    padding: 12px 38px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(233,69,96,0.2);
}

.hero-visual {
    flex: 1 1 400px;
    text-align: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 20px;
}

.banner-slide {
    display: none;
    transition: opacity 0.5s;
}

.banner-slide.active {
    display: block;
}

.banner-slide img, .banner-slide svg {
    width: 100%;
    border-radius: 20px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #e94560;
}

/* Sections common */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

body.dark-mode .section-title h2 {
    color: #e0e0e0;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #e94560;
    border-radius: 2px;
}

.section-title p {
    color: #666;
    margin-top: 15px;
    font-size: 16px;
}

body.dark-mode .section-title p {
    color: #aaa;
}

/* Brand */
.brand-intro {
    background: #fff;
}

body.dark-mode .brand-intro {
    background: #1e1e1e;
}

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

.brand-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

body.dark-mode .brand-card {
    background: #2a2a2a;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.brand-card svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.brand-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

body.dark-mode .brand-card h3 {
    color: #e0e0e0;
}

.brand-card p {
    color: #666;
}

body.dark-mode .brand-card p {
    color: #aaa;
}

/* Company */
.company-intro {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

body.dark-mode .company-intro {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
}

.company-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.company-text {
    flex: 1 1 500px;
}

.company-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.company-text p {
    margin-bottom: 15px;
    color: #555;
}

body.dark-mode .company-text p {
    color: #aaa;
}

.company-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #e94560;
}

.stat-label {
    color: #888;
    font-size: 14px;
}

.company-visual {
    flex: 1 1 400px;
    text-align: center;
}

/* History */
.history {
    background: #fff;
}

body.dark-mode .history {
    background: #1e1e1e;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e94560;
    transform: translateX(-50%);
}

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

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

.timeline-item:nth-child(even) {
    left: 0;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 90%;
}

body.dark-mode .timeline-content {
    background: #2a2a2a;
}

.timeline-content h3 {
    color: #e94560;
    margin-bottom: 5px;
}

/* Team */
.team {
    background: #f8f9fa;
}

body.dark-mode .team {
    background: #1e1e1e;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

body.dark-mode .team-card {
    background: #2a2a2a;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: #e94560;
    padding: 10px;
}

.team-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-card p {
    color: #888;
    font-size: 14px;
}

/* Products */
.products {
    background: #fff;
}

body.dark-mode .products {
    background: #1e1e1e;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

body.dark-mode .product-card {
    background: #2a2a2a;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-card p {
    color: #666;
}

body.dark-mode .product-card p {
    color: #aaa;
}

/* Advantages */
.advantages {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
}

body.dark-mode .advantages {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
}

.advantages .section-title h2 {
    color: #fff;
}

.advantages .section-title p {
    color: #ccc;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.adv-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: background 0.3s;
}

.adv-card:hover {
    background: rgba(255,255,255,0.2);
}

.adv-card svg {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.adv-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.adv-card p {
    color: #ccc;
}

/* Solutions */
.solutions {
    background: #f8f9fa;
}

body.dark-mode .solutions {
    background: #1e1e1e;
}

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

.solution-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

body.dark-mode .solution-card {
    background: #2a2a2a;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.solution-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.solution-card p {
    color: #666;
}

body.dark-mode .solution-card p {
    color: #aaa;
}

/* Industry */
.industry {
    background: #fff;
}

body.dark-mode .industry {
    background: #1e1e1e;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.industry-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: background 0.3s;
}

body.dark-mode .industry-item {
    background: #2a2a2a;
}

.industry-item:hover {
    background: #e94560;
    color: #fff;
}

.industry-item svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
}

/* Cases */
.cases {
    background: #f8f9fa;
}

body.dark-mode .cases {
    background: #1e1e1e;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

body.dark-mode .case-card {
    background: #2a2a2a;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card svg {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    margin-bottom: 10px;
}

.case-info p {
    color: #666;
}

body.dark-mode .case-info p {
    color: #aaa;
}

/* Partners */
.partners {
    background: #fff;
}

body.dark-mode .partners {
    background: #1e1e1e;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-logo svg {
    width: 120px;
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover svg {
    opacity: 1;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

body.dark-mode .testimonials {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
}

body.dark-mode .testimonial-card {
    background: #2a2a2a;
}

.testimonial-card::before {
    content: '“';
    font-size: 60px;
    color: #e94560;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

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

.testimonial-author svg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94560;
    padding: 8px;
}

/* News */
.news {
    background: #fff;
}

body.dark-mode .news {
    background: #1e1e1e;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
}

body.dark-mode .news-card {
    background: #2a2a2a;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card svg {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-info .date {
    color: #e94560;
    font-size: 14px;
}

.news-info h3 {
    font-size: 18px;
    margin: 10px 0;
}

.news-info p {
    color: #666;
}

body.dark-mode .news-info p {
    color: #aaa;
}

/* Related articles */
.related-articles {
    background: #f8f9fa;
}

body.dark-mode .related-articles {
    background: #1e1e1e;
}

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

.related-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    transition: background 0.3s;
}

body.dark-mode .related-item {
    background: #2a2a2a;
}

.related-item:hover {
    background: #e94560;
    color: #fff;
}

.related-item h4 {
    font-size: 16px;
}

/* FAQ */
.faq {
    background: #fff;
}

body.dark-mode .faq {
    background: #1e1e1e;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

body.dark-mode .faq-item {
    border-color: #333;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.faq-question:hover {
    color: #e94560;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    color: #666;
}

body.dark-mode .faq-answer {
    color: #aaa;
}

.faq-answer.open {
    max-height: 200px;
    padding: 15px;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-icon.open {
    transform: rotate(45deg);
}

/* HowTo */
.howto {
    background: #f8f9fa;
}

body.dark-mode .howto {
    background: #1e1e1e;
}

.howto-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.howto-step {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    flex: 1 1 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.dark-mode .howto-step {
    background: #2a2a2a;
}

.howto-step .step-number {
    font-size: 30px;
    font-weight: 800;
    color: #e94560;
}

/* Contact */
.contact {
    background: #fff;
}

body.dark-mode .contact {
    background: #1e1e1e;
}

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

.contact-item {
    text-align: center;
    padding: 20px;
}

.contact-item svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
}

body.dark-mode .contact-item p {
    color: #aaa;
}

/* Links */
.friend-links {
    background: #f8f9fa;
    padding: 40px 0;
}

body.dark-mode .friend-links {
    background: #1e1e1e;
}

.friend-links .links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links a {
    color: #666;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s;
}

body.dark-mode .friend-links a {
    color: #aaa;
    border-color: #444;
}

.friend-links a:hover {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

/* Sitemap */
.sitemap {
    background: #fff;
    padding: 40px 0;
}

body.dark-mode .sitemap {
    background: #1e1e1e;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.sitemap-col h4 {
    margin-bottom: 15px;
    color: #e94560;
}

.sitemap-col ul li {
    margin-bottom: 8px;
}

.sitemap-col ul li a {
    color: #666;
    transition: color 0.3s;
}

body.dark-mode .sitemap-col ul li a {
    color: #aaa;
}

.sitemap-col ul li a:hover {
    color: #e94560;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
}

body.dark-mode footer {
    background: #0a0a0a;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1 1 200px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: #e94560;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
    transition: background 0.3s, transform 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: #d63851;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26,26,46,0.98);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px;
    }
    nav ul.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-content {
        flex-direction: column;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        flex-direction: row;
        padding-left: 40px;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .hero-text h1 {
        font-size: 28px;
    }
}