:root {
    --primary: #274c77;
    --secondary: #6096ba;
    --primary-color: #274c77;
    --secondary-color: #6096ba;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --font-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.25rem;
    --border-radius-lg: 0.3rem;
    --border-radius-sm: 0.2rem;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--dark-color);
    background: url('/theme/image/background.svg') no-repeat center center fixed;
    background-size: cover;
    background-color: #f0f3fb;
    padding-top:70px;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.tophead {
    background: transparent;
    color: var(--primary);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.tophead h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.tophead p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--secondary);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon.electric {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
}

.tool-icon.weight {
    background: linear-gradient(45deg, #a18cd1, #fbc2eb);
}

.tool-icon.temp {
    background: linear-gradient(45deg, #ffc3a0, #ffafbd);
}

.tool-icon.voltage {
    background: linear-gradient(45deg, #84fab0, #8fd3f4);
}

.tool-icon.area {
    background: linear-gradient(45deg, #a1c4fd, #c2e9fb);
}

.tool-icon.length {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
}

.tool-icon.data {
    background: linear-gradient(45deg, #d4fc79, #96e6a1);
}

.tool-icon.time {
    background: linear-gradient(45deg, #f6d365, #fda085);
}

.tool-icon.pressure {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.tool-icon.speed {
    background: linear-gradient(45deg, #5ee7df, #b490ca);
}

.tool-icon.volume {
    background: linear-gradient(45deg, #c471f5, #fa71cd);
}

.tool-icon.torque {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tool-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.ad-container {
    margin: 2rem auto;
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.top-ad {
    margin-top: 0;
}

.bottom-ad {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
}

/* Modern Converter Container */
.converter-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.converter-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Input Section */
.input-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .input-section {
    grid-template-columns: 1fr 1fr;
  }
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input, 
.input-group select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: var(--transition-fast);
  background-color: var(--light);
  font-family: var(--font-sans);
}

.input-group input:focus, 
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background-color: var(--white);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--primary);
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn i {
  font-size: 1.1em;
}

/* Results Section */
.results-section {
  margin-top: 2rem;
}

.results-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xl);
}

.results-section h3 i {
  color: var(--accent);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.result-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  border: 1px solid rgba(0,0,0,0.05);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.result-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.result-unit {
  color: var(--gray);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-single-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-single-btn:hover {
  color: var(--primary);
  background: rgba(67, 97, 238, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

:root {
    --time-primary: #f7971e;
    --time-secondary: #ffd200;
    --time-accent: #ff416c;
    --time-light: #f8f9fa;
    --time-dark: #212529;
    --time-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --time-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.time-converter {
    background: linear-gradient(135deg, var(--time-light), #ffffff);
    border-radius: 20px;
    box-shadow: var(--time-shadow);
    overflow: hidden;
    transition: var(--time-transition);
}

.time-header {
    background: linear-gradient(135deg, var(--time-primary), var(--time-secondary));
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.time-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-header .back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--time-transition);
}

.time-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.time-visualization {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(247,151,30,0.05), rgba(255,210,0,0.05));
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.clock-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.clock-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    border: 10px solid #f8f9fa;
    box-shadow: 
        0 0 0 4px #e9ecef,
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--time-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.clock-mark {
    position: absolute;
    width: 3px;
    height: 10px;
    background: var(--time-dark);
    left: 50%;
    top: 5px;
    transform-origin: bottom center;
    transform: translateX(-50%);
}

.clock-mark-hour {
    height: 15px;
    background: var(--time-dark);
}

.hour-hand, .minute-hand, .second-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    border-radius: 10px;
    transition: var(--time-transition);
}

.hour-hand {
    width: 6px;
    height: 60px;
    margin-left: -3px;
    background: var(--time-dark);
    z-index: 3;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.minute-hand {
    width: 4px;
    height: 80px;
    margin-left: -2px;
    background: var(--time-dark);
    z-index: 4;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.second-hand {
    width: 2px;
    height: 90px;
    margin-left: -1px;
    background: var(--time-accent);
    z-index: 5;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.time-indicator {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--time-primary);
    text-align: center;
    background: rgba(255,255,255,0.8);
    padding: 0.8rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Input Section */
.time-input-section {
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    margin: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--time-dark);
    font-size: 0.95rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--time-transition);
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--time-primary);
    box-shadow: 0 0 0 3px rgba(247,151,30,0.2);
    transform: translateY(-2px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--time-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-reset {
    background: #f8f9fa;
    color: var(--time-dark);
}

.btn-copy {
    background: linear-gradient(135deg, var(--time-primary), var(--time-secondary));
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
}

/* Results Section */
.results-section {
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    margin: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.results-section h3 {
    color: var(--time-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(247,151,30,0.05), rgba(255,210,0,0.05));
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    position: relative;
    transition: var(--time-transition);
    border: 1px solid rgba(247,151,30,0.1);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(247,151,30,0.1);
    border-color: rgba(247,151,30,0.2);
}

.result-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--time-primary);
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--time-primary), var(--time-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-unit {
    color: var(--time-dark);
    font-size: 0.9rem;
    opacity: 0.8;
}

.copy-single-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(247,151,30,0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--time-primary);
    cursor: pointer;
    transition: var(--time-transition);
}

.copy-single-btn:hover {
    background: rgba(247,151,30,0.2);
    color: white;
    transform: scale(1.1);
}

/* Animations */
@keyframes tick {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clock-face.tick {
    animation: tick 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .time-header h1 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .time-input-section,
    .results-section {
        margin: 1rem 0.5rem;
    }
    
    .time-header {
        padding: 1rem;
    }
    
    .time-header h1 {
        font-size: 1.3rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .clock-container {
        width: 150px;
        height: 150px;
    }
    
    .hour-hand {
        height: 45px;
    }
    
    .minute-hand {
        height: 60px;
    }
    
    .second-hand {
        height: 70px;
    }
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.content-card h2 {
    color: var(--time-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card h3 {
    color: var(--time-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.use-case {
    background: rgba(246, 211, 101, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--time-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(246, 211, 101, 0.1);
}

.use-case i {
    font-size: 1.75rem;
    color: var(--time-dark);
    margin-bottom: 1rem;
}

.use-case h4 {
    color: var(--time-dark);
    margin-bottom: 0.75rem;
}

.use-case p {
    color: #555;
    line-height: 1.6;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    color: var(--time-color);
    margin-top: 0.25rem;
}

/* Conversion Table */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.conversion-table th, 
.conversion-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.conversion-table th {
    background-color: var(--time-color);
    color: white;
    font-weight: 600;
}

.conversion-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.conversion-table tr:hover {
    background-color: rgba(246, 211, 101, 0.1);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--time-color);
}

.tip-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--time-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.tip-card h4 {
    color: var(--time-dark);
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.tip-card p {
    color: #555;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: rgba(246, 211, 101, 0.05);
    border: 1px solid rgba(246, 211, 101, 0.2);
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: white;
    border: none;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9f9f9;
    color: var(--time-dark);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--time-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-answer p {
    padding: 1rem 0;
    color: #555;
    line-height: 1.7;
}

.faq-question.active + .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
    }
    
    .use-cases-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .conversion-table th, 
    .conversion-table td {
        padding: 0.75rem;
    }
}