/* 
 * Bet365官网 - 企业官网样式
 * 移动端优先响应式设计
 * 针对Yandex和Bing搜索引擎优化
 */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul, ol {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a5fb4;
}

.logo span {
    color: #e74c3c;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 1000;
}

.nav.active {
    right: 0;
}

.nav-list {
    padding: 20px;
}

.nav-item {
    border-bottom: 1px solid #eee;
}

.nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    color: #333;
}

.nav-link:hover,
.nav-link.active {
    color: #1a5fb4;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Hero Banner */
.hero {
    margin-top: 56px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    color: #fff;
    padding: 60px 15px;
    text-align: center;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #c0392b;
}

/* Section Common */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1a5fb4;
    margin: 15px auto 0;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 35px;
    padding: 0 15px;
}

/* Keywords Section */
.keywords {
    background: #f8f9fa;
    padding: 20px 0;
}

.keywords-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #555;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: #1a5fb4;
    color: #fff;
    border-color: #1a5fb4;
}

/* Services Section */
.services {
    background: #fff;
}

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

.service-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: #fff;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.about-text h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-indent: 2em;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
}

.about-feature::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1a5fb4;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Advantages Section */
.advantages {
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    color: #fff;
}

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

.advantages .section-title::after {
    background: #fff;
}

.advantages .section-desc {
    color: rgba(255,255,255,0.9);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.product-image {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 0.8rem;
    color: #666;
}

/* News Section */
.news {
    background: #f8f9fa;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-image {
    height: 160px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    display: inline-block;
    margin-top: 15px;
    color: #1a5fb4;
    font-size: 0.9rem;
}

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

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #1a5fb4;
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #1a5fb4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #155a9c;
}

/* Phone Float Button */
.phone-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 998;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Page Header */
.page-header {
    margin-top: 56px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2980b9 100%);
    color: #fff;
    padding: 40px 15px;
    text-align: center;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb span {
    margin: 0 8px;
}

/* News Detail */
.news-detail {
    background: #fff;
    padding: 30px 0;
}

.article {
    background: #fff;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content h2 {
    font-size: 1.125rem;
    color: #333;
    margin: 30px 0 15px;
}

.article-content h3 {
    font-size: 1rem;
    color: #333;
    margin: 25px 0 10px;
}

.article-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-nav a {
    display: block;
    padding: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.article-nav a:hover {
    color: #1a5fb4;
}

/* About Page */
.about-detail {
    background: #fff;
}

.about-intro {
    margin-bottom: 40px;
}

.about-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-indent: 2em;
}

.company-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.company-info h3 {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 20px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.info-value {
    color: #666;
}

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

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5fb4;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a5fb4;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #155a9c;
}

/* Services Page */
.services-detail {
    background: #fff;
}

.service-detail-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.service-detail-card h3 {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .hero {
        padding: 80px 15px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-image {
        flex: 1;
        min-height: 300px;
    }
    
    .about-text {
        flex: 1;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-item {
        flex-direction: row;
    }
    
    .news-image {
        width: 200px;
        height: auto;
        flex-shrink: 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding-top: 0;
    }
    
    .nav-list {
        display: flex;
        padding: 0;
        gap: 5px;
    }
    
    .nav-item {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #f0f0f0;
        border-radius: 5px;
    }
    
    .hero {
        padding: 100px 15px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-image {
        height: 150px;
    }
    
    .news-image {
        width: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .contact-grid {
        flex-direction: row;
    }
    
    .contact-info {
        flex: 1;
    }
    
    .contact-form {
        flex: 1;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .phone-float {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
}
