/* ===================================
   Favicon.com.cn - Complete Stylesheet
   =================================== */

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}
a { color: #3b82f6; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #2563eb; text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}
.logo {
    font-size: 1.6em;
    font-weight: 800;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}
.nav-menu a {
    color: #4b5563;
    font-weight: 600;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-menu a:hover {
    color: #3b82f6;
    text-decoration: none;
}
.nav-icon { font-size: 1.2em; }

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-size: 3.2em;
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.4em;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-cta { margin-bottom: 30px; }
.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.social-link {
    color: white;
    opacity: 0.9;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    transition: all 0.3s;
}
.social-link:hover {
    background: rgba(255,255,255,0.1);
    opacity: 1;
    text-decoration: none;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-primary {
    background: white;
    color: #3b82f6;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.5);
    text-decoration: none;
}
.btn-secondary {
    background: #3b82f6;
    color: white;
}
.btn-secondary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===================================
   Tools Sections
   =================================== */
.tools-section { padding: 90px 20px; }
.tools-section.primary { background: #f8f9fa; }
.tools-section.secondary { background: white; }
.section-title {
    text-align: center;
    font-size: 2.6em;
    margin-bottom: 60px;
    color: #1f2937;
    font-weight: 800;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 45px 35px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}
.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #3b82f6;
    text-decoration: none;
    color: inherit;
}
.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    margin-bottom: 28px;
}
.tool-card h3 {
    font-size: 1.6em;
    margin-bottom: 18px;
    color: #1f2937;
    font-weight: 700;
}
.tool-card p {
    color: #6b7280;
    line-height: 1.9;
    font-size: 1em;
}

/* ===================================
   Resources Section
   =================================== */
.resources-section {
    padding: 90px 20px;
    background: white;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.resource-item {
    padding: 28px;
    background: linear-gradient(135deg, #f8f9fa, #eef2ff);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.resource-item:hover {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    transform: translateX(8px);
    text-decoration: none;
    color: inherit;
    border-left-color: #3b82f6;
}
.resource-item h4 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #3b82f6;
    font-weight: 700;
}
.resource-item p {
    color: #6b7280;
    font-size: 0.95em;
    line-height: 1.7;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 90px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    font-size: 1.1em;
    color: #4b5563;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ===================================
   Forms (for tool pages)
   =================================== */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1f2937;
    font-size: 1.05em;
}
.form-group input[type="text"],
.form-group input[type="file"],
.form-group input[type="number"],
.form-group input[type="range"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.color-picker-group input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 3px;
}

/* ===================================
   Preview & Result Areas
   =================================== */
.preview-area {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 14px;
    padding: 35px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid #e5e7eb;
}
.preview-area h4 {
    margin-bottom: 25px;
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 700;
}
.preview-canvas {
    display: inline-block;
    border: 3px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    min-width: 200px;
    min-height: 200px;
}
.preview-canvas img,
.preview-canvas canvas {
    display: block;
}

/* Result Area */
.result-area {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 14px;
    border: 2px solid #a5d6a7;
}
.result-area h4 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.download-btn {
    background: #3b82f6;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.4);
    text-decoration: none;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 70px 20px 35px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 45px;
    margin-bottom: 45px;
}
.footer-section h4 {
    margin-bottom: 25px;
    font-size: 1.25em;
    color: white;
    font-weight: 700;
}
.footer-section a {
    color: #9ca3af;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.footer-section a:hover {
    color: white;
    padding-left: 5px;
    text-decoration: none;
}
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 35px;
    text-align: center;
    color: #9ca3af;
}
.footer-tagline {
    margin-top: 15px;
    font-size: 0.95em;
    color: #6b7280;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .nav-menu { gap: 20px; }
    .hero h1 { font-size: 2.5em; }
    .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2em; }
    .hero-subtitle { font-size: 1.1em; }
    .section-title { font-size: 2em; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
.show { display: block; }
