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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.logo span.blue {
    color: #4a90d9;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #4a90d9;
}

.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background: white;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #4a90d9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

main {
    padding: 40px 0;
    min-height: calc(100vh - 280px);
}

.calculator-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.calculator-section h1 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.calculator-section .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

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

.btn {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.3);
}

.result-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border-left: 4px solid #4a90d9;
}

.result-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #d4e4f7;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item label {
    font-weight: 500;
    color: #555;
}

.result-item value {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a2e;
}

.result-item value.highlight {
    color: #27ae60;
    font-size: 24px;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 26px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90d9;
}

.content-section h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 25px 0 15px;
}

.content-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul,
.content-section ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-section th,
.content-section td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #ddd;
}

.content-section th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.faq-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.faq-section h2 {
    font-size: 26px;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90d9;
}

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

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3::before {
    content: 'Q';
    background: #4a90d9;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.faq-item p {
    font-size: 16px;
    color: #555;
    padding-left: 38px;
    line-height: 1.7;
}

.related-tools {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.related-tools h2 {
    font-size: 26px;
    color: #1a1a2e;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90d9;
}

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

.tool-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.tool-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.ad-slot {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    border: 2px dashed #ddd;
}

.ad-slot.sidebar {
    position: sticky;
    top: 20px;
}

.ad-slot p {
    color: #999;
    font-size: 14px;
}

.ad-slot-full {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border: 2px dashed #ddd;
}

.ad-slot-full p {
    color: #999;
    font-size: 14px;
}

footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4a90d9;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #4a90d9;
}

.disclaimer {
    background: #16213e;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.disclaimer p {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.home-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero .btn {
    font-size: 20px;
    padding: 18px 50px;
}

.home-section {
    padding: 60px 0;
}

.home-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.home-section .subtitle {
    font-size: 16px;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

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

.category-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
}

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

.category-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.category-card .card-link {
    color: #4a90d9;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    margin-top: 15px;
}

.category-card:hover .card-link {
    text-decoration: underline;
}

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

.featured-tool {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.featured-tool:hover {
    transform: translateY(-3px);
}

.featured-tool .tag {
    display: inline-block;
    background: #e6f0fa;
    color: #4a90d9;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-tool h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.featured-tool p {
    font-size: 14px;
    color: #666;
}

.slogan-container {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateY(20px);
    text-align: center;
}

.slogan-item.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.slogan-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4a90d9;
    width: 30px;
    border-radius: 5px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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 ease;
}

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

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-card .icon {
    position: relative;
    z-index: 1;
}

.featured-tool {
    position: relative;
    overflow: hidden;
}

.featured-tool::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(74, 144, 217, 0.1), transparent, rgba(74, 144, 217, 0.1));
    animation: spin 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-tool:hover::after {
    opacity: 1;
}

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

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a90d9;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.5);
}

.tool-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

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

.home-section {
    animation: fadeInUp 0.6s ease-out;
}

.home-section:nth-child(3) {
    animation-delay: 0.1s;
}

.home-section:nth-child(4) {
    animation-delay: 0.2s;
}

.home-section:nth-child(5) {
    animation-delay: 0.3s;
}

.home-hero {
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(53, 122, 189, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 144, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

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

.category-card .icon {
    animation: float 3s ease-in-out infinite;
}

.category-card:nth-child(2) .icon {
    animation-delay: 0.3s;
}

.category-card:nth-child(3) .icon {
    animation-delay: 0.6s;
}

.category-card:nth-child(4) .icon {
    animation-delay: 0.9s;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-header .subtitle {
    font-size: 16px;
    color: #666;
}

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

.article-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90d9 0%, #357abd 100%);
}

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

.article-tag {
    display: inline-block;
    background: #e6f0fa;
    color: #4a90d9;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #4a90d9;
    color: #4a90d9;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #4a90d9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.3);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home-hero h1 {
        font-size: 32px;
    }
    
    .calculator-section,
    .content-section,
    .faq-section,
    .related-tools {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-slot-full {
        padding: 20px;
        margin: 25px 0;
    }
}