/* Samsung Ireland Landing Page Styles */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 性能优化 - 减少重绘和重排 */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 页面加载指示器 */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 性能优化 - 字体显示策略 */
body {
    font-display: swap;
}

/* 移动端适配 - 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #1428A0;
    }
    
    /* 内容区域适配 */
    .container {
        padding: 0 15px;
    }
    
    /* 网格布局适配 */
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 英雄区域适配 */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* 文章布局适配 */
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        margin-top: 30px;
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
    }
    
    /* 表格适配 */
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.9rem;
    }
}

/* 小屏幕移动设备适配 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
header {
    background-color: #1428A0;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffcc00;
}

.nav-links a.active {
    color: #ffcc00;
    font-weight: bold;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffcc00;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-banner.svg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 40px;
    cursor: pointer;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background-color: #ffcc00;
    color: #1428A0;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #ffcc00;
}

.cta-btn:hover {
    background-color: transparent;
    color: #ffcc00;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1428A0;
}

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

.feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.feature-icon {
    font-size: 3rem;
    color: #1428A0;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1428A0;
}

/* Products Section */
.products {
    padding: 60px 0;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

.product-image svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1428A0;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1428A0;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background-color: #f0f4ff;
}

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

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

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

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-details h4 {
    color: #1428A0;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    background-color: #1428A0;
    color: white;
    padding: 60px 0;
    text-align: center;
    cursor: pointer;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-white {
    background-color: white;
    color: #1428A0;
    border: 2px solid white;
}

.cta-white:hover {
    background-color: transparent;
    color: white;
}

/* Footer Styles */
footer {
    background-color: #0a1a5c;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffcc00;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a3a7c;
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 60px 0;
    background-color: white;
}

.privacy-policy h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1428A0;
}

.privacy-policy h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #1428A0;
}

.privacy-policy p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.privacy-policy ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-policy ul li {
    margin-bottom: 10px;
}

/* Articles Page */
.articles-page {
    padding: 60px 0;
}

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

.article-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.article-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content {
    padding: 20px;
}

.article-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1428A0;
}

.article-excerpt {
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #1428A0;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffcc00;
}

/* Single Article Page */
.article-single {
    padding: 60px 0;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1428A0;
}

.article-header .article-date {
    font-size: 1rem;
}

.article-content-main {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-content-main p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content-main h2 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: #1428A0;
}

.article-content-main h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: #1428A0;
}

.article-content-main ul {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content-main ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Floating CTA Button for Article Pages */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.floating-cta-btn {
    background-color: #ffcc00;
    color: #1428A0;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-cta-btn:hover {
    background-color: #1428A0;
    color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Article Sidebar Floating Action Button */
.article-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.article-content {
    flex: 1;
    max-width: 700px;
}

.article-sidebar {
    width: 300px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sticky-action {
    position: sticky;
    top: 100px;
    z-index: 998;
    margin-bottom: 30px;
}

.btn-action {
    display: block;
    background-color: #ffcc00;
    color: #1428A0;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-action:hover {
    background-color: #1428A0;
    color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-action::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-action:hover::after {
    width: 300px;
    height: 300px;
}

/* Anchor Link Styles */
.anchor-link {
    display: inline-block;
    background-color: #ffcc00;
    color: #1428A0;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin: 10px 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.anchor-link:hover {
    background-color: transparent;
    color: #ffcc00;
    border-color: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Related Articles */
.related-articles {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-articles h3 {
    color: #1428A0;
    margin-bottom: 20px;
}

.related-articles ul {
    list-style: none;
}

.related-articles li {
    margin-bottom: 15px;
}

.related-articles a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-articles a:hover {
    transform: translateX(5px);
}

.related-articles a div {
    flex: 1;
}

.related-articles h4 {
    color: #1428A0;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.related-articles span {
    color: #666;
    font-size: 0.85rem;
}

/* Responsive Article Layout */
@media (max-width: 1024px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        position: static;
    }
    
    .sticky-action {
        position: static;
        margin-bottom: 20px;
    }
    
    .btn-action {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 999;
        min-width: 180px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .floating-cta-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
}

/* Image Placeholder Styles */
.image-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.image-placeholder span {
    font-size: 0.9rem;
}

/* Tech Guides Section */
.guides {
    padding: 60px 0;
}

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

.guide-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.guide-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-content {
    padding: 20px;
}

.guide-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1428A0;
}

.guide-description {
    color: #555;
    margin-bottom: 15px;
}

.guide-link {
    display: inline-block;
    color: #1428A0;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-link:hover {
    color: #ffcc00;
}